WIE HEIẞT DAS DING?
This commit is contained in:
parent
bdf63adb0d
commit
1b39c3085e
1 changed files with 13 additions and 0 deletions
13
parse.py
13
parse.py
|
@ -67,4 +67,17 @@ def wiki_stats(items: Dict[int, str], count_items: Dict[int, int], questions: Di
|
|||
ret += f"|| {questions[size_id]}: || {size[1]} || {count}\n|-\n"
|
||||
ret += "|}\n"
|
||||
|
||||
athene_id = 305 # ID of the question how the logo image is to be named
|
||||
human_id = 147 # ticket for a human
|
||||
mascot_id = 148 # ticket for a mascot
|
||||
def prefix(id_):
|
||||
return "Mensch sagt:" if id_ == human_id else "Maskottchen sagt:" if id_ == mascot_id else ""
|
||||
ret += ('== Wie heißt das Ding? ==\n'
|
||||
'{|class="wikitable sortable"\n'
|
||||
'! Variante !! Stimmen\n'
|
||||
'|-\n')
|
||||
for variant, count in quest_answers[athene_id].items():
|
||||
ret += f"|| {prefix(variant[0])} {variant[1]} || {count}\n|-\n"
|
||||
ret += "|}\n"
|
||||
|
||||
return ret
|
||||
|
|
Loading…
Reference in a new issue