refactored(chalice): include sessions src

This commit is contained in:
Taha Yassine Kraiem 2025-03-11 15:45:20 +01:00 committed by Kraiem Taha Yassine
parent 0a5856afe1
commit ce844296ed
2 changed files with 4 additions and 2 deletions

View file

@ -166,7 +166,8 @@ def search_sessions(data: schemas.SessionsSearchPayloadSchema, project: schemas.
# reverse=data.order.upper() == "DESC") # reverse=data.order.upper() == "DESC")
return { return {
'total': total, 'total': total,
'sessions': helper.list_to_camel_case(sessions) 'sessions': helper.list_to_camel_case(sessions),
'src': 1
} }

View file

@ -201,7 +201,8 @@ def search_sessions(data: schemas.SessionsSearchPayloadSchema, project: schemas.
return { return {
'total': total, 'total': total,
'sessions': sessions_list 'sessions': sessions_list,
'src': 2
} }