BO1.28+4
This commit is contained in:
parent
e980928e4d
commit
7ce7d81641
@ -160,6 +160,6 @@ LOGGING = {
|
|||||||
|
|
||||||
|
|
||||||
CRON_CLASSES = [
|
CRON_CLASSES = [
|
||||||
'aitrainer_backoffice.controlling.cron.sync_customers',
|
'controlling.cron.cron.MyCronJob',
|
||||||
# ...
|
# ...
|
||||||
]
|
]
|
||||||
|
@ -4,8 +4,3 @@ from django.apps import AppConfig
|
|||||||
class ControllingConfig(AppConfig):
|
class ControllingConfig(AppConfig):
|
||||||
app_label = 'controlling'
|
app_label = 'controlling'
|
||||||
name = 'controlling'
|
name = 'controlling'
|
||||||
|
|
||||||
|
|
||||||
class ControllingConfigLive(AppConfig):
|
|
||||||
app_label = 'controlling'
|
|
||||||
name = 'aitrainer_backoffice.controlling'
|
|
||||||
|
@ -12,9 +12,7 @@ class MyCronJob(CronJobBase):
|
|||||||
print(datetime.datetime.now(), " *** END sync customers ")
|
print(datetime.datetime.now(), " *** END sync customers ")
|
||||||
|
|
||||||
def do(self):
|
def do(self):
|
||||||
sync_customers() # do your thing here
|
helper = MauticHelper()
|
||||||
|
helper.syncTrial()
|
||||||
|
|
||||||
|
|
||||||
def sync_customers():
|
|
||||||
helper = MauticHelper()
|
|
||||||
helper.syncTrial()
|
|
Loading…
Reference in New Issue
Block a user