From 8ede2b8597eb14c0567c2c3c0135593f7c557521 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Tue, 30 Jun 2020 14:40:18 +0200 Subject: Continue cleaning up --- database/view-table.py | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 database/view-table.py (limited to 'database/view-table.py') diff --git a/database/view-table.py b/database/view-table.py deleted file mode 100644 index 615b4081..00000000 --- a/database/view-table.py +++ /dev/null @@ -1,17 +0,0 @@ -import os -import sqlite3 -import sys - -try: - BASE_DIR = directory_name=sys.argv[1] -except: - BASE_DIR = os.path.dirname(os.path.abspath(__file__)) -db_location = os.path.join(BASE_DIR, 'opendc.db') - -conn = sqlite3.connect(db_location) -c = conn.cursor() - -rows = c.execute('SELECT * FROM ' + sys.argv[2]) - -for row in rows: - print row -- cgit v1.2.3