small fix
This commit is contained in:
parent
5c3f42fd35
commit
a7cd8ceca4
1 changed files with 3 additions and 3 deletions
|
@ -58,9 +58,9 @@ def connect_sqlite():
|
|||
def init_db():
|
||||
# Initialisation de la base SQLite
|
||||
with closing(connect_sqlite()) as con_sqlite:
|
||||
with app.open_resource('schema.sql') as f:
|
||||
con_sqlite.cursor().executescript(f.read().decode("utf-8"))
|
||||
con_sqlite.commit()
|
||||
with app.open_resource('schema.sql') as f:
|
||||
con_sqlite.cursor().executescript(f.read().decode("utf-8"))
|
||||
con_sqlite.commit()
|
||||
|
||||
# Connexion à la base SQLite locale
|
||||
con_sqlite = connect_sqlite()
|
||||
|
|
Loading…
Reference in a new issue