From a433a4f4b7a545c54cd200ccd4b882357a94f706 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 15 Oct 2022 23:10:18 +0100 Subject: [PATCH] Bump hook when received --- core/views/hooks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/views/hooks.py b/core/views/hooks.py index b57c310..af820d9 100644 --- a/core/views/hooks.py +++ b/core/views/hooks.py @@ -30,6 +30,8 @@ class HookAPI(APIView): data=request.data, ) callback.save() + hook.received = hook.received += 1 + hook.save() print("SAVED") return HttpResponse("OK")