feat(chalice): fixed get favorite session
This commit is contained in:
parent
4b3e414024
commit
b68c954aff
2 changed files with 2 additions and 2 deletions
|
|
@ -62,4 +62,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["min_start_ts"], r["max_start_ts"])
|
||||
|
|
|
|||
|
|
@ -90,4 +90,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["min_start_ts"], r["max_start_ts"])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue