Skip to content

Commit

Permalink
removed redundant property from request_tts
Browse files Browse the repository at this point in the history
  • Loading branch information
kirgrim committed Feb 18, 2024
1 parent 6015ce1 commit bc32d74
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions chat_server/sio.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,14 +478,12 @@ async def request_tts(sid, data):
required_keys = (
"cid",
"message_id",
"user_id",
)
if not all(key in list(data) for key in required_keys):
LOG.error(f"Missing one of the required keys - {required_keys}")
else:
lang = data.get("lang", "en")
message_id = data["message_id"]
user_id = data["user_id"]
cid = data["cid"]
matching_message = MongoDocumentsAPI.SHOUTS.get_item(item_id=message_id)
if not matching_message:
Expand Down

0 comments on commit bc32d74

Please sign in to comment.