jifunks / botany

command line virtual plant buddy
ISC License
438 stars 32 forks source link

plants will die when community waters are cleared at the end of the week #30

Closed xfnw closed 4 years ago

xfnw commented 4 years ago

if the plant owner waters the plant, disappears for a week, and during that time someone else waters the plant every day, and then sunday rolls around, the visitors will be cleared and the plant will die if the owner comes back even though it has not been a week since the plant was last watered

jifunks commented 4 years ago

nah, the visitors.json is the source of truth for this, it is only consumed/cleared when the plant owner returns and opens the app (or leaves the app running, which I still don't recommend). the visitors being cleared is only done for the sql table (which is just a record). there is a bug here that you won't see someone visited you a bunch of times though :( but your plant will live :)