modif cron

This commit is contained in:
2024-04-12 15:12:27 +02:00
parent 0f3adecf91
commit a94a0b0fe8
6 changed files with 23 additions and 13 deletions

View File

@@ -1,11 +1,7 @@
from django.apps import AppConfig
from mycaldav.cron import InitTaskSync
class CaldavConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'mycaldav'
def ready(self):
my_cron_job = InitTaskSync()
my_cron_job.start()