small fix

This commit is contained in:
guimoz 2017-01-27 00:58:05 +01:00
parent 5c3f42fd35
commit a7cd8ceca4

View file

@ -58,7 +58,7 @@ def connect_sqlite():
def init_db(): def init_db():
# Initialisation de la base SQLite # Initialisation de la base SQLite
with closing(connect_sqlite()) as con_sqlite: with closing(connect_sqlite()) as con_sqlite:
with app.open_resource('schema.sql') as f: with app.open_resource('schema.sql') as f:
con_sqlite.cursor().executescript(f.read().decode("utf-8")) con_sqlite.cursor().executescript(f.read().decode("utf-8"))
con_sqlite.commit() con_sqlite.commit()