ConfigModel.puzzle.next

This commit is contained in:
Jörn-Michael Miehe 2023-09-15 17:06:28 +00:00
parent 2394bd19a5
commit 1bfa17a629
3 changed files with 7 additions and 0 deletions

View file

@ -25,6 +25,7 @@ class ConfigModel(BaseModel):
class __Puzzle(BaseModel): class __Puzzle(BaseModel):
solution: str solution: str
first: date first: date
next: date
last: date last: date
end: date end: date
seed: str seed: str
@ -69,6 +70,7 @@ async def get_config_model(
"puzzle": { "puzzle": {
"solution": cfg.puzzle.solution, "solution": cfg.puzzle.solution,
"first": event_days.first, "first": event_days.first,
"next": event_days.next,
"last": event_days.last, "last": event_days.last,
"end": event_days.end, "end": event_days.end,
"seed": cfg.puzzle.random_seed, "seed": cfg.puzzle.random_seed,

View file

@ -23,6 +23,9 @@
<dt>Erstes Türchen</dt> <dt>Erstes Türchen</dt>
<dd>{{ config_model.puzzle.first }}</dd> <dd>{{ config_model.puzzle.first }}</dd>
<dt>Nächstes Türchen</dt>
<dd>{{ config_model.puzzle.next }}</dd>
<dt>Letztes Türchen</dt> <dt>Letztes Türchen</dt>
<dd>{{ config_model.puzzle.last }}</dd> <dd>{{ config_model.puzzle.last }}</dd>
@ -145,6 +148,7 @@ export default class extends Vue {
puzzle: { puzzle: {
solution: "ABCDEFGHIJKLMNOPQRSTUVWX", solution: "ABCDEFGHIJKLMNOPQRSTUVWX",
first: "01.12.2023", first: "01.12.2023",
next: "01.12.2023",
last: "24.12.2023", last: "24.12.2023",
end: "01.04.2024", end: "01.04.2024",
seed: "", seed: "",

View file

@ -2,6 +2,7 @@ export interface ConfigModel {
puzzle: { puzzle: {
solution: string; solution: string;
first: string; first: string;
next: string;
last: string; last: string;
end: string; end: string;
seed: string; seed: string;