TinyDB json file not beign updated, bug?
NekoLove

Hi, I'm using tinydb package with my python repl. But after a while even if my bot makes changes to db.json file, the file in appears to be unchanged in my workspace.

You are viewing a single comment. View All
Answered by InvisibleOne [earned 5 cycles]
View Answer
Coder100

it's not a bug, it's a feature. If you make programmatic edits to the repl while you are not on the repl, the changes revert for security. I recommend using replit db instead:
https://docs.replit.com/hosting/database-faq