This commit is contained in:
@@ -58,6 +58,9 @@ class caldav_sync_manager(models.Model):
|
|||||||
o_caldav_sync_management = caldav_sync_manager.objects.filter(dtDate=last_month.date())
|
o_caldav_sync_management = caldav_sync_manager.objects.filter(dtDate=last_month.date())
|
||||||
if not o_caldav_sync_management.exists():
|
if not o_caldav_sync_management.exists():
|
||||||
self.copy_caldav_data(last_month)
|
self.copy_caldav_data(last_month)
|
||||||
|
o_new_manager = caldav_sync_manager()
|
||||||
|
o_new_manager.dtDate = last_month
|
||||||
|
o_new_manager.save()
|
||||||
print(f"synced events")
|
print(f"synced events")
|
||||||
else:
|
else:
|
||||||
print("Mois précédant: pas de copy, sync déjà fait")
|
print("Mois précédant: pas de copy, sync déjà fait")
|
||||||
|
Reference in New Issue
Block a user