This commit is contained in:
@@ -57,7 +57,10 @@ class caldav_sync_manager(models.Model):
|
||||
print(f"test du mois précédant: {last_month.strftime("%d/%m/%Y")}")
|
||||
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)
|
||||
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")
|
||||
else:
|
||||
print("Mois précédant: pas de copy, sync déjà fait")
|
||||
|
Reference in New Issue
Block a user