diff --git a/botany.py b/botany.py index 41afc2c..1b8a232 100755 --- a/botany.py +++ b/botany.py @@ -123,8 +123,8 @@ class Plant(object): def __init__(self, this_filename, generation=1): # Constructor self.plant_id = str(uuid.uuid4()) - # self.life_stages = (3600*24, (3600*24)*3, (3600*24)*10, (3600*24)*20, (3600*24)*30) - self.life_stages = (2, 4, 6, 8, 10) + self.life_stages = (3600*24, (3600*24)*3, (3600*24)*10, (3600*24)*20, (3600*24)*30) + # self.life_stages = (2, 4, 6, 8, 10) self.stage = 0 self.mutation = 0 self.species = random.randint(0,len(self.species_list)-1) diff --git a/clear_weekly_users.py b/clear_weekly_users.py new file mode 100644 index 0000000..b598309 --- /dev/null +++ b/clear_weekly_users.py @@ -0,0 +1,11 @@ +import os +import sqlite3 + +game_dir = os.path.dirname(os.path.realpath(__file__)) +garden_db_path = os.path.join(game_dir, 'sqlite/garden_db.sqlite') +conn = sqlite3.connect(garden_db_path) +c = conn.cursor() +c.execute("DELETE FROM visitors") +print "Cleared weekly users" +conn.commit() +conn.close() diff --git a/menu_screen.py b/menu_screen.py index 1a7a336..4494b3d 100644 --- a/menu_screen.py +++ b/menu_screen.py @@ -130,7 +130,7 @@ class CursedMenu(object): # self.screen.refresh() def draw_plant_ascii(self, this_plant): - ypos = 1 + ypos = 0 xpos = int((self.maxx-37)/2 + 25) plant_art_list = this_plant.species_list if this_plant.dead == True: