mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-12-23 21:22:59 +00:00
ConfigModel.puzzle.next
This commit is contained in:
parent
2394bd19a5
commit
1bfa17a629
3 changed files with 7 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -23,6 +23,9 @@
|
|||
<dt>Erstes Türchen</dt>
|
||||
<dd>{{ config_model.puzzle.first }}</dd>
|
||||
|
||||
<dt>Nächstes Türchen</dt>
|
||||
<dd>{{ config_model.puzzle.next }}</dd>
|
||||
|
||||
<dt>Letztes Türchen</dt>
|
||||
<dd>{{ config_model.puzzle.last }}</dd>
|
||||
|
||||
|
@ -145,6 +148,7 @@ export default class extends Vue {
|
|||
puzzle: {
|
||||
solution: "ABCDEFGHIJKLMNOPQRSTUVWX",
|
||||
first: "01.12.2023",
|
||||
next: "01.12.2023",
|
||||
last: "24.12.2023",
|
||||
end: "01.04.2024",
|
||||
seed: "",
|
||||
|
|
|
@ -2,6 +2,7 @@ export interface ConfigModel {
|
|||
puzzle: {
|
||||
solution: string;
|
||||
first: string;
|
||||
next: string;
|
||||
last: string;
|
||||
end: string;
|
||||
seed: string;
|
||||
|
|
Loading…
Reference in a new issue