jifunks / botany

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

Watering certain plants breaks plant view #19

Closed jifunks closed 6 years ago

jifunks commented 6 years ago

"I tried visiting cmccabe plant, which gave me the preview (with the RIP tomb), but now I can't see my own plant (either with water or look)"

also doesn't show "you watered x's

can resolve the issue by visiting a working plant.

i think the issue starts around line 704 in menu_screen.py cmccabe also has weirdly formed json:

{"generation": 1, "score": 82672, "description": "seed", "owner": "cmccabe", "file_name": "/home/cmccabe/.botany/cmccabe_plant.datq\u0014", "age": "10d:17h:7m:22s", "stage": "seed", "is_dead": true, "last_watered": 1525946641} (why is q\u0014 there?)


so kind of two issues: 1) what causes the display bug to show a gravestone and not refresh to your own plant after? 2) what happened to cmccabe's json file that breaks it?

jifunks commented 6 years ago

this looks like a permissions issue on cmccabe's case. visitors.json should be writable