← All questionsReplit app dozed off mid-game and my Tuesday bridge group lost all the scores. Is that the free plan?
About Replit and Python
Bridge Tally keeps the scores in a Python list while it runs. Worked for two hours, then someone refreshed and everything was zero.
Replies
Not the plan, the list. Anything you keep in a variable is gone the moment the app restarts, and Replit restarts it whenever it feels like it. Write scores to a file or Replit's built-in key-value database every time they change, and read them back on start. Sheet Saver lost cut lists the same way.
Sep 3Kenji, hamid, Jonah S. and others agree
Also on the free plan the app does go to sleep after a while with no traffic, so both things are true. Deploying it (the deploy button, not just run) kept mine up.
Sep 4Henrik and Kenji agree
Asked the assistant to move the scores into a small SQLite file and reload it on start. Tested by killing the app on purpose. My wife still says it's biased.
Sep 6Lou, Henrik and hamid agree
Sign in to reply.
Replies sit in the order people agree with them; the ones the asker marks “helped” lead. Names, never a number.