Ask coding questions

← Back to all posts
TinyDB json file not beign updated, bug?
NekoLove (0)

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.

Answered by InvisibleOne (3264) [earned 5 cycles]
View Answer
InvisibleOne (3264)

For discord bots I just like to use MongoDB, it's free as long as you don't have too much data, and it's quite easy to learn and use.

Coder100 (19280)

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: