From a58806a6582ffca11a4d9ce2a637f83849d0165b Mon Sep 17 00:00:00 2001 From: Guilhem Saurel <guilhem.saurel@laas.fr> Date: Fri, 2 Feb 2024 18:27:57 +0100 Subject: [PATCH] offices: fix arthur, workaround vincent, fix font size --- scripts/data/offices-ldap.json | 4 ++++ scripts/offices.py | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/data/offices-ldap.json b/scripts/data/offices-ldap.json index b8fb762..79a488f 100644 --- a/scripts/data/offices-ldap.json +++ b/scripts/data/offices-ldap.json @@ -30,6 +30,10 @@ ] ], "B03": [ + [ + "Haffemayer", + "Arthur" + ], [ "Pomarat", "Zoé" diff --git a/scripts/offices.py b/scripts/offices.py index 62e1124..74a4388 100755 --- a/scripts/offices.py +++ b/scripts/offices.py @@ -97,6 +97,9 @@ class Offices: # Stuff that is wrong in LDAP… We should fix that there WRONG_OFFICE = { + "B04": { + ("Vincent", "Bonnet"), + }, "B10": { ("Guilhem", "Saurel"), ("Thibault", "Marsan"), @@ -138,7 +141,7 @@ def door_label(members, logo=True): # elif len(members) == 3: # draw.font_size = 75 else: - draw.font_size = 90 + draw.font_size = 80 draw.text_alignment = "center" height = HEIGHT - len(members) * draw.font_size draw.text( -- GitLab