BO 1.25 App Texts

This commit is contained in:
Tibor Bossanyi (Freelancer)
2021-09-09 07:49:13 +02:00
parent a9d34f65b8
commit 925c35f329
9 changed files with 97 additions and 13 deletions
+12 -1
View File
@@ -1,6 +1,17 @@
from ..mautic import MauticHelper
from django_cron import CronJobBase, Schedule
class MyCronJob(CronJobBase):
RUN_EVERY_MINS = 60 # every 2 hours
schedule = Schedule(run_every_mins=RUN_EVERY_MINS)
code = 'aitrainer_backoffice.controlling.cron' # a unique code
def do(self):
sync_customers() # do your thing here
def sync_customers():
helper = MauticHelper()
helper.sync()
helper.syncTrial()