add print information

This commit is contained in:
2024-10-31 07:36:17 +01:00
parent d352c3c5c8
commit 9c0d33214d

View File

@@ -54,6 +54,7 @@ class caldav_sync_manager(models.Model):
print("pas de copy, sync déjà fait")
last_month = today - relativedelta(months=1)
print(f"test du mois précédant: {last_month.date}")
o_caldav_sync_management = caldav_sync_manager.objects.filter(dtDate=last_month.date())
if not o_caldav_sync_management.exists():
self.copy_caldav_data(last_month)