diff --git a/db.py b/db.py index f28f4a3..7849b23 100644 --- a/db.py +++ b/db.py @@ -19,6 +19,7 @@ def __init__(self): 'logs' : (1, "_id integer PRIMARY KEY DEFAULT nextval('serial'), time type text NOT NULL, log text NOT NULL") } + self.unmanaged_tables = ('logs', 'users', 'tables') self.__ensure_all_tables_correct() #future ideas: @@ -226,10 +227,9 @@ def db_check_table(self,table_name): def __ensure_all_tables_correct(self): all_tables = self.tables.keys() - unimplemented_tables = ('logs', 'users', 'tables') all_successful = True for table in all_tables: - if table in unimplemented_tables: + if table in self.unmanaged_tables: continue if self.__ensure_table_correct(table): print(".. Table found: %s" % table)