Api v1.3.0changes (#141)

* feat(api): get session: live flag checks for duration

* feat(api): assist search by user_id
* feat(api): assist limit returned to 500

* feat(api): get session, live flag cast
This commit is contained in:
Kraiem Taha Yassine 2021-08-12 17:30:36 +02:00 committed by GitHub
parent 0790921124
commit 25e2b70e1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,4 +70,4 @@ def is_live(project_id, session_id, project_key=None):
print(connected_peers.text)
return False
connected_peers = connected_peers.json().get("data", [])
return session_id in connected_peers
return str(session_id) in connected_peers