feat(chalice): check session existance fetchone
This commit is contained in:
parent
a10488345b
commit
2a760fe876
1 changed files with 1 additions and 1 deletions
|
|
@ -1247,5 +1247,5 @@ def session_exists(project_id, session_id):
|
|||
AND project_id=%(project_id)s""",
|
||||
{"project_id": project_id, "session_id": session_id})
|
||||
cur.execute(query)
|
||||
row = cur.fetchone(query)
|
||||
row = cur.fetchone()
|
||||
return row is not None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue