Skip to content

Commit

Permalink
rename and move self.unmanaged_tables to group with related table defs
Browse files Browse the repository at this point in the history
  • Loading branch information
indivisible-irl committed Nov 21, 2013
1 parent edec6c7 commit 122439b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 122439b

Please sign in to comment.