Ne fait la sync task_config que si 1h du matin

This commit is contained in:
Ambulance Clerc
2022-07-29 18:05:17 +02:00
parent 63177605e9
commit c6e53f69da

View File

@@ -121,7 +121,7 @@ class cls_caldav_client():
self.a_task = self.data.calendar(name="Tâche")
if datetime.today().day == 29:
if datetime.today().day == 1 and datetime.today().hour == 1:
try:
with open(os.path.join("mycaldav", "last_sync_config.bin"), "rb") as file:
array = pickle.load(file)