feat(chalice): fixed get favorite sessions without time limit
This commit is contained in:
parent
4a17e5ba75
commit
0c7101a82d
2 changed files with 2 additions and 2 deletions
|
|
@ -61,4 +61,4 @@ def get_start_end_timestamp(project_id, user_id):
|
|||
{"userId": user_id, "project_id": project_id})
|
||||
)
|
||||
r = cur.fetchone()
|
||||
return 0, 0 if r is None else r["max_start_ts"], r["min_start_ts"]
|
||||
return (0, 0) if r is None else (r["max_start_ts"], r["min_start_ts"])
|
||||
|
|
|
|||
|
|
@ -89,4 +89,4 @@ def get_start_end_timestamp(project_id, user_id):
|
|||
{"userId": user_id, "project_id": project_id})
|
||||
)
|
||||
r = cur.fetchone()
|
||||
return 0, 0 if r is None else r["max_start_ts"], r["min_start_ts"]
|
||||
return (0, 0) if r is None else (r["max_start_ts"], r["min_start_ts"])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue