Parcourir la source

arregle un error

Tatiana Castro il y a 5 ans
Parent
révision
55373b279b
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3
    3
      app/admin.py

+ 3
- 3
app/admin.py Voir le fichier

@@ -22,9 +22,9 @@ def admin():
22 22
         if station_query_res is not None:
23 23
             station_id = station_query_res[0]
24 24
         db.execute(
25
-            'INSERT INTO station (nombre_empleado, oficina, last_turn, timeArrival, station)'
26
-            ' VALUES (?, ?, ?, ?, ?)',
27
-            (eName, office, turn, 0)
25
+            'INSERT INTO station (nombre_empleado, oficina, last_turn)'
26
+            ' VALUES (?, ?, ?)',
27
+            (eName, office, 0)
28 28
         )
29 29
         db.commit()
30 30
         return redirect(url_for('admin'))