This commit is contained in:
Tibor Bossanyi (Freelancer) 2021-09-17 16:55:43 +02:00
parent e980928e4d
commit 7ce7d81641
3 changed files with 4 additions and 11 deletions

View File

@ -160,6 +160,6 @@ LOGGING = {
CRON_CLASSES = [
'aitrainer_backoffice.controlling.cron.sync_customers',
'controlling.cron.cron.MyCronJob',
# ...
]

View File

@ -3,9 +3,4 @@ from django.apps import AppConfig
class ControllingConfig(AppConfig):
app_label = 'controlling'
name = 'controlling'
class ControllingConfigLive(AppConfig):
app_label = 'controlling'
name = 'aitrainer_backoffice.controlling'
name = 'controlling'

View File

@ -12,9 +12,7 @@ class MyCronJob(CronJobBase):
print(datetime.datetime.now(), " *** END sync customers ")
def do(self):
sync_customers() # do your thing here
helper = MauticHelper()
helper.syncTrial()
def sync_customers():
helper = MauticHelper()
helper.syncTrial()