|
@@ -12,15 +12,8 @@ def admin():
|
12
|
12
|
if request.method == 'POST':
|
13
|
13
|
eName = request.form['eName']
|
14
|
14
|
office = request.form['oficina']
|
15
|
|
- last_turn = request.form['turno']
|
16
|
15
|
|
17
|
16
|
db = get_db()
|
18
|
|
- station_query_res = db.execute(
|
19
|
|
- 'SELECT s_id FROM station WHERE nombre_empleado=?',
|
20
|
|
- (station_name,)
|
21
|
|
- ).fetchone()
|
22
|
|
- if station_query_res is not None:
|
23
|
|
- station_id = station_query_res[0]
|
24
|
17
|
db.execute(
|
25
|
18
|
'INSERT INTO station (nombre_empleado, oficina, last_turn)'
|
26
|
19
|
' VALUES (?, ?, ?)',
|