Database not saving
(Aio)Sqlite3 database resetting when the programm restarting.
I need to do it not resetting, because i making bot for telegram with value system. On repl.it on each restart bot resetting database to first state file. Please help :(
Yeah, you can still use the replit database. But you can save a list as a value to the key, and access the elements from there.
And the reason why your database is resetting is everytime the code runs, you are creating a new connection to the db. Create a connection only if a db has not already been created. @Xpym4uk