Added better logs
This commit is contained in:
parent
3dfc022b08
commit
0090f2c259
@ -16,6 +16,9 @@ class ResultRow:
|
||||
self.placeTo = placeTo
|
||||
self.competitionGroup = competitionGroup
|
||||
self.competitionClass = competitionClass
|
||||
|
||||
def __str__(self):
|
||||
return f'{self.name} ({self.id}, {self.club}) are in {self.group} {self.class_} and danced the {self.dance} in {self.competitionGroup} {self.competitionClass} getting place {self.place}-{self.placeTo}'
|
||||
|
||||
class ResultPerson:
|
||||
def __init__(self, firstName, lastName, club, id = None, group = None):
|
||||
@ -122,6 +125,7 @@ class CSVExtractor:
|
||||
group=row[15], class_=row[16]
|
||||
)
|
||||
ret.append(result)
|
||||
self.l.debug('Found row in CSV: %s', result)
|
||||
|
||||
for row in imported['data']:
|
||||
__processRow(row)
|
||||
@ -206,6 +210,8 @@ class DataWorker:
|
||||
parsed = parser.guessDataFromHtmlTitle(imp.title)
|
||||
key = (parsed['group'], parsed['class_'], parsed['dance'])
|
||||
ret[key] = imp
|
||||
self.l.debug('LUT[%s] = %s', key, imp)
|
||||
self.l.debug('LUT completed')
|
||||
return ret
|
||||
|
||||
def mergeHtmlData(self, data:dict[ResultPerson, list[CompetitionResult]], htmlImports: list[html_parser.HtmlImport]):
|
||||
@ -228,7 +234,6 @@ class DataWorker:
|
||||
dancesPresent = {d: False for d in allDances}
|
||||
|
||||
for person in data:
|
||||
print(person)
|
||||
for competition in data[person]:
|
||||
dancesPresent[competition.dance] = True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user