stats about food preference
This commit is contained in:
parent
897d03c5ed
commit
1b021758f2
1 changed files with 12 additions and 0 deletions
12
parse.py
12
parse.py
|
@ -14,6 +14,8 @@ MASCOT_ID = 148 # ticket for a mascot
|
||||||
# Rahmenprogramm
|
# Rahmenprogramm
|
||||||
RAHMERST_ID = 308
|
RAHMERST_ID = 308
|
||||||
RAHMZWEIT_ID = 317
|
RAHMZWEIT_ID = 317
|
||||||
|
# Yummy!
|
||||||
|
ESSEN_ID = 302
|
||||||
|
|
||||||
|
|
||||||
def parse(filename: Union[str, Path]) -> Tuple[
|
def parse(filename: Union[str, Path]) -> Tuple[
|
||||||
|
@ -94,6 +96,16 @@ def wiki_stats(items: Dict[int, str], count_items: Dict[int, int], questions: Di
|
||||||
ret += f"|| {program[1]} || {count}\n|-\n"
|
ret += f"|| {program[1]} || {count}\n|-\n"
|
||||||
ret += "|}\n\n"
|
ret += "|}\n\n"
|
||||||
|
|
||||||
|
ret += ('== Essen ==\n'
|
||||||
|
'{|class="wikitable sortable"\n'
|
||||||
|
'! Präferenz !! gewählt\n'
|
||||||
|
'|-\n')
|
||||||
|
for pref, count in quest_answers[ESSEN_ID].items():
|
||||||
|
ret += f"|| {pref[1]} || {count}\n|-\n"
|
||||||
|
ret += ("|}\n"
|
||||||
|
"Unverträglichkeiten/Allergien konnten auch angegeben werden, Antworten beim Pretix-Team erfragen."
|
||||||
|
"\n\n")
|
||||||
|
|
||||||
ret += '== Wünsche an das ewige Frühstück ==\n'
|
ret += '== Wünsche an das ewige Frühstück ==\n'
|
||||||
for wish in quest_answers[BREAKFASTWISHES_ID]:
|
for wish in quest_answers[BREAKFASTWISHES_ID]:
|
||||||
ret += f"* <pre>{wish[1]}</pre>\n"
|
ret += f"* <pre>{wish[1]}</pre>\n"
|
||||||
|
|
Loading…
Reference in a new issue