Explorar el Código

Adds fetchone to turn retrieval query

Jose Reyes hace 5 años
padre
commit
2b14abd89b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      __init__.py

+ 1
- 1
__init__.py Ver fichero

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