Change frontend

This commit is contained in:
Ambulance Clerc
2022-10-15 04:01:17 +02:00
parent 0f2802e5a9
commit 4dd63bb7b5
4 changed files with 59 additions and 71 deletions

View File

@@ -83,6 +83,9 @@ class cls_caldav():
if "$" in item.key:
item.team_transfert = True
item.key = item.key.replace("$","")
if "Manif" in item.key:
item.team_manif = True
item.key = item.key.replace("Manif", "")
item.name = arr[1]
if "&" in item.name:
arr = item.name.split("&")
@@ -303,6 +306,7 @@ class _caldav_item():
team_1_chef = False
team_2_chef = False
team_transfert = False
team_manif = False
def format_str_date(self):
self.str_start_date = datetime.strptime(self.dtstart,"%d.%m.%Y %H:%M").strftime("%d.%m")