소스 검색

Adds fetchone to turn retrieval query

Jose Reyes 5 년 전
부모
커밋
2b14abd89b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      __init__.py

+ 1
- 1
__init__.py 파일 보기

@@ -45,7 +45,7 @@ def create_app(test_config=None):
45 45
                 turn = db.execute(
46 46
                     'SELECT last_turn FROM station WHERE s_id=?',
47 47
                     (station_id,)
48
-                )
48
+                ).fetchone()
49 49
                 db.execute(
50 50
                     'INSERT INTO turno (cName, cEmail, turn, timeArrival, station)'
51 51
                     ' VALUES (?, ?, ?, ?)',