Explorar el Código

Adds turn number to insert query

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

+ 2
- 2
__init__.py Ver fichero

@@ -47,9 +47,9 @@ def create_app(test_config=None):
47 47
                     (station_id)
48 48
                 )
49 49
                 db.execute(
50
-                    'INSERT INTO turno (cName, cEmail, timeArrival, station)'
50
+                    'INSERT INTO turno (cName, cEmail, turn, timeArrival, station)'
51 51
                     ' VALUES (?, ?, ?, ?)',
52
-                    (cName, cEmail, 'testin', station_id)
52
+                    (cName, cEmail, turn, 'testin', station_id)
53 53
                 )
54 54
             db.commit()
55 55