Skip to content
Snippets Groups Projects

Sazba výsledkovek TeXem

Merged
Martin Marešrequested to merge
mj/vysledky-pdf into devel
All threads resolved!

Files

+ 2
2
@@ -3,9 +3,9 @@
import decimal
import json
import os
import subprocess
import re
import requests
import subprocess
from typing import Any, Dict, Iterable, Optional, List
import mo
@@ -91,7 +91,7 @@ def make_score_pdf(temp_dir: str, score: Score, results: List[ScoreResult]) -> s
with open(tex_src, 'w') as f:
f.write('\\input vysledky.tex\n\n')
hlavicka = f'Výsledková listina {db.round_type_names_genitive[round.round_type]} {round.year}. ročníku MO kategorie {round.category}'
hlavicka = f'Výsledková listina {round.round_type.friendly_name_genitive()} {round.year}. ročníku MO kategorie {round.category}'
f.write('\\def\\hlavicka' + tex_arg(hlavicka) + '\n')
if round.level > 0 and contest.place.name:
f.write('\\def\\misto' + tex_arg(contest.place.name) + '\n')
Loading