updated todos

pull/8/head
Jake Funke 2018-05-21 18:00:53 +00:00
parent 70aa58a091
commit 09b18e862d
2 changed files with 7 additions and 1 deletions

View File

@ -343,6 +343,10 @@ class Plant(object):
class DataManager(object): class DataManager(object):
# handles user data, puts a .botany dir in user's home dir (OSX/Linux) # handles user data, puts a .botany dir in user's home dir (OSX/Linux)
# handles shared data with sqlite db # handles shared data with sqlite db
# TODO: .dat save should only happen on mutation, water, death, exit,
# harvest, otherwise
# data hasn't changed...
# can write json whenever bc this isn't ever read for data within botany
user_dir = os.path.expanduser("~") user_dir = os.path.expanduser("~")
botany_dir = os.path.join(user_dir,'.botany') botany_dir = os.path.join(user_dir,'.botany')
@ -398,7 +402,8 @@ class DataManager(object):
time.sleep(.1) time.sleep(.1)
def autosave(self, this_plant): def autosave(self, this_plant):
# running on thread, saves plant every 5s # running on thread, saves plant every 5s TODO: this is unnecessary
# and breaks shit probably
file_update_count = 0 file_update_count = 0
while True: while True:
file_update_count += 1 file_update_count += 1

View File

@ -302,6 +302,7 @@ class CursedMenu(object):
self.infotoggle = 0 self.infotoggle = 0
# print garden information OR clear it # print garden information OR clear it
# TODO: pagination control with hjkl/arrow keys/esc-or-x to close
for page_num, page in enumerate(plant_table_pages, 1): for page_num, page in enumerate(plant_table_pages, 1):
# Print page text # Print page text
self.draw_info_text(page) self.draw_info_text(page)