Skip to content

Commit

Permalink
ID and Id will work for api
Browse files Browse the repository at this point in the history
  • Loading branch information
tavdog committed Feb 8, 2025
1 parent 5aaed20 commit e1d3a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tronbyt_server/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def handle_push(device_id):
abort(400, description="Invalid JSON data")
# data = request.get_json()
print(data)
installation_id = data.get("installationID", "__")
installation_id = data.get("installationID", data.get("installationId", "__")) # get both cases ID and Id
print(f"installation_id:{installation_id}")
image_data = data.get("image")

Expand Down

0 comments on commit e1d3a16

Please sign in to comment.