Formatting

This commit is contained in:
shortcutme 2016-11-07 23:09:06 +01:00
parent 8955998d25
commit 0d9e3baebc

View file

@ -83,16 +83,6 @@ class DbCursor:
# Return: True on success # Return: True on success
def createTable(self, table, cols): def createTable(self, table, cols):
# TODO: Check current structure # TODO: Check current structure
"""table_changed = False
res = c.execute("PRAGMA table_info(%s)" % table)
if res:
for row in res:
print row["name"], row["type"], cols[row["name"]]
print row
else:
table_changed = True
if table_changed: # Table structure changed, drop and create again"""
self.execute("DROP TABLE IF EXISTS %s" % table) self.execute("DROP TABLE IF EXISTS %s" % table)
col_definitions = [] col_definitions = []
for col_name, col_type in cols: for col_name, col_type in cols: