diff --git a/core/views/hooks.py b/core/views/hooks.py index 379f40a..adb4fa0 100644 --- a/core/views/hooks.py +++ b/core/views/hooks.py @@ -1,4 +1,5 @@ import re +from string import digits import orjson from django.contrib.auth.mixins import LoginRequiredMixin @@ -98,6 +99,9 @@ class HookAPI(APIView): # 'Stoch Exit' signal_name = " ".join(hook_resp.message.split(":")[0].split(" ")[2:]) + for x in signal_name: + if x in digits: + signal_name = signal_name.replace(x, "?") try: signal = Signal.objects.get(signal=signal_name) except Signal.DoesNotExist: