BO 1.30.15 double Notification class name
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user