From c2bc3166f2a9daa9c4d6942c3919ba13f5e2c3da Mon Sep 17 00:00:00 2001 From: "Maxence G. de Montauzan" Date: Fri, 20 Jul 2018 21:04:18 +0200 Subject: [PATCH] Fix init log/action --- pits.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pits.py b/pits.py index 9f8376f..d2882d0 100644 --- a/pits.py +++ b/pits.py @@ -71,7 +71,8 @@ def init(): INSERT INTO action (username, action, message) VALUES (?, ?, ?); ''' - conn.execute(action_query, (getpass.getuser(), 'init', 'Initialized pit',)) # TODO Add schema version + action_msg = 'Initialized pits database - DB Schema version: {}'.format(SCHEMA_VERSION) + conn.execute(action_query, (getpass.getuser(), 'init', action_msg,)) # logging.info('Inserting initial data') # conn.executescript("""