1.0.6 push routines

This commit is contained in:
SDE
2024-05-08 11:23:01 +03:00
parent 4b588eb6e4
commit 2f421bb0ac
3 changed files with 9 additions and 4 deletions

View File

@@ -69,7 +69,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))