BO 1.30.15 double Notification class name

This commit is contained in:
Tibor Bossanyi (Freelancer)
2021-10-03 07:51:51 +02:00
parent b1b1eec56b
commit 1a2ab5ddb8
5 changed files with 8 additions and 8 deletions
@@ -12,7 +12,7 @@ else:
from .fcm import FCM
import traceback
class Notification:
class NotificationExec:
fcm = None
def __init__(self) -> None:
if self.fcm == None:
@@ -21,7 +21,7 @@ class Notification:
def run(self):
print("** Running Notification automation")
notification_queryset = Notification.objects.using('live').raw('SELECT * from notification WHERE active = 1')
for notification in notification_queryset:
if notification.schedule_date != None:
pass
@@ -57,4 +57,4 @@ class Notification:
history.notification_date = datetime.datetime.now(tz=cet)
history.save()
print(f'-- Notification History "{history}" has been saved')