remove "doors" from admin ConfigModel (is public)

This commit is contained in:
Jörn-Michael Miehe 2023-09-11 23:47:07 +00:00
parent 2ae4fb8695
commit b73185e4fb
2 changed files with 2 additions and 5 deletions

View file

@ -31,7 +31,6 @@ class ConfigModel(BaseModel):
class __Calendar(BaseModel):
config_file: str
background: str
doors: list[int]
class __Image(BaseModel):
class __Font(BaseModel):
@ -73,7 +72,6 @@ async def get_config_model(
"calendar": {
"config_file": cfg.puzzle.calendar,
"background": cal_cfg.background,
"doors": [door.day for door in cal_cfg.doors],
},
"image": {
"size": 500, # TODO

View file

@ -49,7 +49,8 @@
<dt>Türchen</dt>
<dd>
<span>{{ admin_config_model.calendar.doors.join(", ") }}</span>
<!-- <span>{{ admin_config_model.calendar.doors.join(", ") }}</span> -->
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16
<span class="tag is-danger ml-2">
<span class="icon">
<font-awesome-icon icon="fa-solid fa-bolt" />
@ -133,7 +134,6 @@ interface ConfigModel {
calendar: {
config_file: string;
background: string;
doors: number[];
};
image: {
size: number;
@ -165,7 +165,6 @@ export default class extends Vue {
calendar: {
config_file: "default.toml",
background: "adventskalender.jpg",
doors: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16],
},
image: {
size: 500,