1.1.1 autosubscribe to null price subscribe
This commit is contained in:
@@ -7,6 +7,7 @@ import json
|
||||
from django.shortcuts import render, get_object_or_404
|
||||
from django.conf import settings
|
||||
from django.utils.translation import gettext as _
|
||||
from SubscribesApp.funcs import check_option_in_cur_user_subscribe
|
||||
|
||||
|
||||
def get_key_Dict():
|
||||
@@ -18,6 +19,9 @@ def get_key_Dict():
|
||||
return Dict
|
||||
|
||||
def send_push(user, title, text, url=None, button_name=None, img=None):
|
||||
if not check_option_in_cur_user_subscribe(user, 'push уведомления'):
|
||||
return False
|
||||
|
||||
try:
|
||||
# body = request.body
|
||||
# data = json.loads(body)
|
||||
|
||||
Reference in New Issue
Block a user