From 95fd2dcde0a17a178756ce8ed32942aa7888a198 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Wed, 17 Jan 2018 22:14:33 +0100 Subject: [PATCH] bugfix --- rowers/dataprepnodjango.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rowers/dataprepnodjango.py b/rowers/dataprepnodjango.py index 56da1378..5e428193 100644 --- a/rowers/dataprepnodjango.py +++ b/rowers/dataprepnodjango.py @@ -502,7 +502,10 @@ def fitnessmetric_to_sql(m,table='powertimefitnessmetric',debug=False): engine = create_engine(database_url, echo=False) columns = ', '.join(m.keys()) - placeholders = ", ".join(["?"] * len(m)) + if debug: + placeholders = ", ".join(["?"] * len(m)) + else: + placeholders = ", ".join(["%s"] * len(m)) query = "INSERT into %s ( %s ) Values (%s)" % (table, columns, placeholders)