瀏覽代碼

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 (?, ?, ?, ?)',