summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2012-09-11 18:53:10 +0200
committerAurélien Bompard <aurelien@bompard.org>2012-09-11 18:53:10 +0200
commit9df6a84967b9e71c370c628542d517d97893067e (patch)
tree877290c99bf65d6d9b5f13e38302221ac1f459e8
parent091f625967dd4f5f6a32b7f1d7a2d8319e7c8746 (diff)
downloadkittystore-9df6a84967b9e71c370c628542d517d97893067e.tar.gz
kittystore-9df6a84967b9e71c370c628542d517d97893067e.tar.xz
kittystore-9df6a84967b9e71c370c628542d517d97893067e.zip
Sanitize variable names
-rw-r--r--to_sqldb.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/to_sqldb.py b/to_sqldb.py
index 4fb52a6..63491cd 100644
--- a/to_sqldb.py
+++ b/to_sqldb.py
@@ -18,9 +18,9 @@ from sqlalchemy.exc import OperationalError
from kittystore import get_store
TOTALCNT = 0
-#DB_URL = 'postgres://mm3:mm3@localhost/mm3'
-#DB_URL = 'postgres://kittystore:kittystore@localhost/kittystore'
-DB_URL = 'sqlite:///' + os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "kittystore.sqlite"))
+#KITTYSTORE_URL = 'postgres://mm3:mm3@localhost/mm3'
+#KITTYSTORE_URL = 'postgres://kittystore:kittystore@localhost/kittystore'
+KITTYSTORE_URL = 'sqlite:///' + os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "kittystore.sqlite"))
def convert_date(date_string):
@@ -74,7 +74,7 @@ python to_sqldb.py list_name mbox_file [mbox_file]'''
else:
print 'Adding to database list: %s' % sys.argv[1]
- store = get_store(DB_URL, debug=False)
+ store = get_store(KITTYSTORE_URL, debug=False)
for mbfile in sys.argv[2:]:
print mbfile
if os.path.exists(mbfile):