Make file name of section turniermeldung more ascii-stable.

This commit is contained in:
Christian Wolf 2024-01-18 15:52:11 +01:00
parent 37f71ff01f
commit 5fd8a8ccd7
3 changed files with 4 additions and 1 deletions

View File

@ -105,11 +105,14 @@ class CompetitionParser:
namePartnerin = self._cleanName(self._partnerin)
competition = f'{self._group} {self._class} {self._section}'
competitionName = self._cleanName(competition)
ort = self._cleanName(self._ort)
filename = f'{self._date}-{ort}-{namePartner}-{namePartnerin}-{competitionName}.md'
return os.path.join(
prefix,
self._date[0:4],
f'{self._date}-{self._ort.lower()}-{namePartner}-{namePartnerin}-{competitionName}.md'
re.sub(self._reDashes, '-', filename)
)
def getContent(self) -> str: