From 961c0dd2a50b8bbe4afe63c604ac570be560a2e6 Mon Sep 17 00:00:00 2001 From: SDE Date: Fri, 26 Jan 2024 18:26:37 +0300 Subject: [PATCH] 0.12.8 switch off push for static pages --- GeneralApp/funcs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GeneralApp/funcs.py b/GeneralApp/funcs.py index 61cc0d8..b324515 100644 --- a/GeneralApp/funcs.py +++ b/GeneralApp/funcs.py @@ -39,7 +39,7 @@ def get_inter_http_respose(template_obj, context_Dict, request): title = getattr(context_Dict['page'], 'title', None) text = getattr(context_Dict['page'], 'description', None) - if text and title and not request.user.is_anonymous: - send_push(user=request.user, title=title, text=text) + # if text and title and not request.user.is_anonymous: + # send_push(user=request.user, title=title, text=text) return HttpResponse(template_obj.render(context_Dict, request)) \ No newline at end of file