From eef06ed1315e4e3a484005f250e36e738320fcda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Wed, 20 Sep 2023 16:39:00 +0200 Subject: [PATCH] bug: issue with short solutions --- Ideen.md | 3 +++ api/advent22_api/core/depends.py | 2 ++ ui/src/components/admin/CalendarAssistant.vue | 9 +++++---- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Ideen.md b/Ideen.md index 1877dda..be367b1 100644 --- a/Ideen.md +++ b/Ideen.md @@ -6,4 +6,7 @@ - Option "Nur Groß-/Kleinbuchstaben" (standard nur groß) - Option "Leerzeichen ignorieren" (standard ja) - Option "custom Zuordnung Buchstaben" (standard leer) + +# Fixed + - Lösungsbuchstaben weniger als türchen erzeugt bug \ No newline at end of file diff --git a/api/advent22_api/core/depends.py b/api/advent22_api/core/depends.py index 514bb23..39b8cfb 100644 --- a/api/advent22_api/core/depends.py +++ b/api/advent22_api/core/depends.py @@ -64,6 +64,8 @@ async def get_all_parts( result[day] = result.get(day, "") result[day] += letter + result |= {missed_day: "" for missed_day in set(days) - set(result.keys())} + return result diff --git a/ui/src/components/admin/CalendarAssistant.vue b/ui/src/components/admin/CalendarAssistant.vue index 91328f6..d949fa1 100644 --- a/ui/src/components/admin/CalendarAssistant.vue +++ b/ui/src/components/admin/CalendarAssistant.vue @@ -6,13 +6,14 @@

Zuordnung Buchstaben

- - {{ day_part.day }}: {{ day_part.value.split("").join(", ") }} - + + {{ day_part.day }}: {{ day_part.value.split("").join(", ") }} + +

Zuordnung Bilder