Fix code formatting issues
This commit is contained in:
parent
d35d56cb81
commit
d1b7c604b5
@ -42,7 +42,7 @@ class NoEClassException(Exception):
|
||||
|
||||
|
||||
class CompetitionClassParser:
|
||||
E = CompetitionClass('E')
|
||||
E = CompetitionClass("E")
|
||||
|
||||
def __init__(self):
|
||||
self.mapNames = {
|
||||
|
@ -38,7 +38,10 @@ class HtmlParser:
|
||||
|
||||
match = re.compile('.*?OT, Solos (.*?)(?: ".*")?').fullmatch(title)
|
||||
if match is None:
|
||||
self.l.info('Cannot parse html title "%s". Is it a solo competition? Possible bug.', title)
|
||||
self.l.info(
|
||||
'Cannot parse html title "%s". Is it a solo competition? Possible bug.',
|
||||
title,
|
||||
)
|
||||
raise Exception(f'Cannot parse title "{title}".')
|
||||
|
||||
rest = match.group(1)
|
||||
|
@ -26,9 +26,7 @@ class HtmlCompetitionTotalResults:
|
||||
) -> list[HtmlSingleCompetitionResult]:
|
||||
return self.results[self.__getTuple(group, class_, dance, id)]
|
||||
|
||||
def getById(
|
||||
self, id: int
|
||||
) -> dict[
|
||||
def getById(self, id: int) -> dict[
|
||||
tuple[str, solo_turnier.group.Group_t, solo_turnier.competition_class.Class_t],
|
||||
HtmlSingleCompetitionResult,
|
||||
]:
|
||||
|
@ -32,7 +32,11 @@ class ResultExtractor:
|
||||
try:
|
||||
data = parser.guessDataFromHtmlTitle()
|
||||
except competition_class.NoEClassException as ex:
|
||||
self.l.info('The HTML file %s does not represent a solo E class. Skipping it. (%s)', filePair[0], ex)
|
||||
self.l.info(
|
||||
"The HTML file %s does not represent a solo E class. Skipping it. (%s)",
|
||||
filePair[0],
|
||||
ex,
|
||||
)
|
||||
continue
|
||||
except:
|
||||
self.l.warning(
|
||||
|
Loading…
Reference in New Issue
Block a user