mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-11-23 00:03:07 +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):
|
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,
|
||||||
|
|
|
@ -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: "",
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue