From a7cd8ceca4404ca5a90c9a69afcc1e2b3392f2ea Mon Sep 17 00:00:00 2001 From: guimoz Date: Fri, 27 Jan 2017 00:58:05 +0100 Subject: [PATCH] small fix --- roulette.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roulette.py b/roulette.py index efd6630..6b8417e 100644 --- a/roulette.py +++ b/roulette.py @@ -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()