Ask coding questions

← Back to all posts
Code generated files reverting to previous version when I open the replit
filipemiguel97 (1)

I am not sure what is happening, and I have not found anything similar after an extensive google search. Me and a friend have a replit (he owns it), at p1nh3iro/TribalWarsMap. The python code is supposed to generate some images every 6 and upload them to the internet. The images are saved in local storage. I can see the code is working, as I see the updated versions on the internet, and also with a discord bot that is connected to the replit. However, whenever I open the replit, the images seem to revert to the version they had the last time I opened it. This is not a drastic issue as thankfully the image is still hosted in a CDN server. However I would like to know if this is a bug or a feature, and regadless, how to fix it.

Thank you very much,

titicompte (0)

I have the same issue with files that store the state of a discord bot
So that revert my bot to a previous state, and it's more problematic

Were you able to find a solution ?


filipemiguel97 (1)

@titicompte nop,I ended up hosting the files on a third party and from there I would send them to Discord

titicompte (0)

@filipemiguel97 thanks for your answer, I came to the same conclusion so I ended up using Firestore in my case