From 6a56b2c3b474867919319d57d84264b2d7c57569 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Sat, 7 May 2016 04:05:52 +0200 Subject: [PATCH] actually fixes #4 now --- sqlite2json/__init__.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sqlite2json/__init__.py b/sqlite2json/__init__.py index 07f55c2..27f17c5 100755 --- a/sqlite2json/__init__.py +++ b/sqlite2json/__init__.py @@ -50,7 +50,6 @@ def get_table(cursor, table_name): cursor.execute('SELECT * FROM main.%s' % table_name) return [dict(zip(column_names, row)) for row in cursor.fetchall()] - def get_tables(cursor): table_list = get_table_list(cursor) output = {} @@ -58,9 +57,5 @@ def get_tables(cursor): output[table_name] = get_table(cursor, table_name) 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__": main()