Skip to content

Commit

Permalink
Remove content grab push notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
wthueb committed Sep 8, 2023
1 parent 8485268 commit 159348e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions wi1_bot/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,9 @@ def index() -> Any:
if request.json is None or "eventType" not in request.json:
return "", 400

logger.debug(f"got request: {json.dumps(request.json, indent=4)}")
logger.debug(f"got request: {json.dumps(request.json)}")

if request.json["eventType"] == "Grab":
on_grab(request.json)
elif request.json["eventType"] == "Download":
if request.json["eventType"] == "Download":
on_download(request.json)
except Exception:
logger.warning(
Expand Down

0 comments on commit 159348e

Please sign in to comment.