actually fixes #4 now

This commit is contained in:
Jeffrey Paul 2016-05-07 04:05:52 +02:00
parent 359bf4feb7
commit 6a56b2c3b4

View File

@ -50,7 +50,6 @@ def get_table(cursor, table_name):
cursor.execute('SELECT * FROM main.%s' % table_name) cursor.execute('SELECT * FROM main.%s' % table_name)
return [dict(zip(column_names, row)) for row in cursor.fetchall()] return [dict(zip(column_names, row)) for row in cursor.fetchall()]
def get_tables(cursor): def get_tables(cursor):
table_list = get_table_list(cursor) table_list = get_table_list(cursor)
output = {} output = {}
@ -58,9 +57,5 @@ def get_tables(cursor):
output[table_name] = get_table(cursor, table_name) output[table_name] = get_table(cursor, table_name)
return output return output
def get_tables(cursor):
table_list = get_table_list(cursor)
return [{table_name : get_table(cursor, table_name) for table_name in table_list}]
if __name__ == "__main__": if __name__ == "__main__":
main() main()