V1.30.10 setting mode
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import datetime
|
||||
import pytz
|
||||
from .notification_hook import NotificationHook
|
||||
from ..models import notification as notif
|
||||
|
||||
from aitrainer_backoffice.aitrainer_backoffice.models import notification as notif
|
||||
|
||||
|
||||
from ..models.notification import NotificationHistory
|
||||
from .fcm import FCM
|
||||
import traceback
|
||||
@@ -43,6 +47,7 @@ class Notification:
|
||||
history.notification = notification
|
||||
history.customer = customer
|
||||
history.response = rc
|
||||
history.notification_date = datetime.datetime.now()
|
||||
cet = pytz.timezone('Europe/Budapest')
|
||||
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