aboutsummaryrefslogtreecommitdiffstats
path: root/createdb.py
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2012-11-09 21:55:15 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2012-11-09 21:57:23 -0500
commit1ae302ff76adcb188dad5383e73c5ade158ffd8a (patch)
treee0b9c5f532c94efff272cfd3fafde81d494d0b91 /createdb.py
parent735bcbe949faea7818fc6f90fcdf47f485715b5a (diff)
downloadfamille-flask-1ae302ff76adcb188dad5383e73c5ade158ffd8a.tar.gz
Stop insanity with timestamps
still need to check the function which imports the old database
Diffstat (limited to 'createdb.py')
-rw-r--r--createdb.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/createdb.py b/createdb.py
index 7f50807..7ec9cd0 100644
--- a/createdb.py
+++ b/createdb.py
@@ -9,9 +9,7 @@ if __name__ == "__main__":
required=True)
args = arg_parser.parse_args()
- conn = sqlite3.connect(args.database)
- c = conn.cursor()
+ conn = sqlite3.connect(args.database, detect_types=sqlite3.PARSE_DECLTYPES)
schema = open(args.schema)
- c.executescript( schema.read() )
- conn.commit()
- c.close()
+ conn.executescript( schema.read() )
+ conn.close()