瀏覽代碼

arregle un error

Tatiana Castro 6 年之前
父節點
當前提交
55373b279b
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      app/admin.py

+ 3
- 3
app/admin.py 查看文件

22
         if station_query_res is not None:
22
         if station_query_res is not None:
23
             station_id = station_query_res[0]
23
             station_id = station_query_res[0]
24
         db.execute(
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
         db.commit()
29
         db.commit()
30
         return redirect(url_for('admin'))
30
         return redirect(url_for('admin'))