diff --git a/api/advent22_api/routers/admin.py b/api/advent22_api/routers/admin.py index e3eeb79..e22c1f7 100644 --- a/api/advent22_api/routers/admin.py +++ b/api/advent22_api/routers/admin.py @@ -25,6 +25,7 @@ class ConfigModel(BaseModel): class __Puzzle(BaseModel): solution: str first: date + next: date last: date end: date seed: str @@ -69,6 +70,7 @@ async def get_config_model( "puzzle": { "solution": cfg.puzzle.solution, "first": event_days.first, + "next": event_days.next, "last": event_days.last, "end": event_days.end, "seed": cfg.puzzle.random_seed, diff --git a/ui/src/components/admin/ConfigView.vue b/ui/src/components/admin/ConfigView.vue index 5e2c376..25380a8 100644 --- a/ui/src/components/admin/ConfigView.vue +++ b/ui/src/components/admin/ConfigView.vue @@ -23,6 +23,9 @@