Changement de comportement sur la génération des nom de team.

Avant on se référer au MC mais suite à une erreur de saisie, j'ai changé en <= 4
This commit is contained in:
Ambulance Clerc
2024-02-12 07:28:00 +01:00
parent b2400c2791
commit 6aa29d6bf5

View File

@@ -270,7 +270,7 @@ class cls_caldav_client():
print(f"Error: mc{team_1}@clerc.ch @{summary}")
return None
else:
print(f"Already with MC { len(equipage[0])}")
print(f"T1 Already with MC { len(equipage[0])}")
if len(equipage) < 2:
print(f"Error équipage sans [&] {key[1]}")
elif len(equipage[1]) <= 4: # check équipage 2
@@ -283,7 +283,7 @@ class cls_caldav_client():
print(f"Error: mc{team_2}@clerc.ch @{summary}")
return None
else:
print(f"Already with MC {len(equipage[1])}")
print(f"T2 Already with MC {len(equipage[1])}")
if updated:
event.vobject_instance.vevent.summary.value = f"{key[0]} {Key_separator} {equipage[0].strip()} & {equipage[1].strip()}"