diff --git a/api/advent22_api/core/config.py b/api/advent22_api/core/config.py index d737860..c99a017 100644 --- a/api/advent22_api/core/config.py +++ b/api/advent22_api/core/config.py @@ -36,7 +36,7 @@ class Puzzle(BaseModel): calendar: str = "default.toml" # Serverseitiger zusätzlicher "random" seed - random_pepper: str = "" + random_seed: str = "" class Config(BaseModel): diff --git a/api/advent22_api/core/sequence_helpers.py b/api/advent22_api/core/sequence_helpers.py index 27fa454..a4911d0 100644 --- a/api/advent22_api/core/sequence_helpers.py +++ b/api/advent22_api/core/sequence_helpers.py @@ -9,7 +9,7 @@ class Random(random.Random): @classmethod async def get(cls, bonus_salt: Any = "") -> Self: cfg = await get_config() - return cls(f"{cfg.puzzle.solution}{cfg.puzzle.random_pepper}{bonus_salt}") + return cls(f"{cfg.puzzle.solution}{cfg.puzzle.random_seed}{bonus_salt}") async def shuffle(seq: Sequence, rnd: random.Random | None = None) -> list: diff --git a/api/advent22_api/routers/admin.py b/api/advent22_api/routers/admin.py index 131b910..cda823b 100644 --- a/api/advent22_api/routers/admin.py +++ b/api/advent22_api/routers/admin.py @@ -69,7 +69,7 @@ async def get_private_config( begin=date.today(), end=date.today(), closing=date.today(), - seed=cfg.puzzle.random_pepper, + seed=cfg.puzzle.random_seed, ), calendar=PrivateCalendar( config_file=cfg.puzzle.calendar,