From bd7840f1599ae5c740dcc3edec27734b0bf1ce1b Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Mon, 13 Apr 2015 02:14:34 +0200 Subject: [PATCH] Make sure nobody accidentally executes this and then wonders what's going on... --- csvdb.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/csvdb.py b/csvdb.py index 5385acd..f3c8b82 100755 --- a/csvdb.py +++ b/csvdb.py @@ -1,5 +1,9 @@ #!/usr/bin/env python +print "This script is not working yet... If you are trying to test it, please delete lines 3 to 5 of this file." +import sys +sys.exit(0) + import sqlite3, csv try: @@ -18,4 +22,4 @@ except sqlite3.OperationalError: print "Database.db already exists. Please delete it before trying to create a new one." for row in input[1:]: - cur.execute("INSERT INTO tweets VALUES(?,?,?,?,?,?,?,?,?,?);",row) + cur.execute("INSERT INTO tweets VALUES(?,?,?,?,?,?,?,?,?,?);",row) \ No newline at end of file