|
@@ -36,15 +36,15 @@ def create_app(test_config=None):
|
36
|
36
|
db = get_db()
|
37
|
37
|
station_id = db.execute(
|
38
|
38
|
'SELECT s_id FROM station WHERE nombre_empleado=?',
|
39
|
|
- (place_holder)
|
|
39
|
+ (place_holder,)
|
40
|
40
|
).fetchone()
|
41
|
41
|
db.execute(
|
42
|
42
|
'UPDATE station SET last_turn = last_turn + 1 WHERE s_id=?',
|
43
|
|
- (station_id)
|
|
43
|
+ (station_id,)
|
44
|
44
|
)
|
45
|
45
|
turn = db.execute(
|
46
|
46
|
'SELECT last_turn FROM station WHERE s_id=?',
|
47
|
|
- (station_id)
|
|
47
|
+ (station_id,)
|
48
|
48
|
)
|
49
|
49
|
db.execute(
|
50
|
50
|
'INSERT INTO turno (cName, cEmail, turn, timeArrival, station)'
|