@@ -45,7 +45,7 @@ def create_app(test_config=None):
turn = db.execute(
'SELECT last_turn FROM station WHERE s_id=?',
(station_id,)
- )
+ ).fetchone()
db.execute(
'INSERT INTO turno (cName, cEmail, turn, timeArrival, station)'
' VALUES (?, ?, ?, ?)',