Reenable checking of additional dance to make bugs more prominent

This commit is contained in:
Christian Wolf 2023-11-19 13:04:01 +01:00
parent 8298cd85a8
commit 638b2a3002

View File

@ -506,17 +506,17 @@ class Worker:
dances = set() dances = set()
additionalDances = set() additionalDances = set()
foundDances = set()
for tup in data.htmlResults.results.keys(): for tup in data.htmlResults.results.keys():
if not groupParser.parseClass(tup[0]) == group: if not groupParser.parseClass(tup[0]) == group:
continue continue
dances.add(tup[2]) foundDances.add(tup[2])
# for part in data.previewImport.results.keys():
# allFoundDances = set(data.previewImport.results[part].keys())
# dances.update(allFoundDances.intersection(self._allDances))
# additionalDances.update(allFoundDances.difference(self._allDances))
dances.update(foundDances.intersection(self._allDances))
additionalDances.update(foundDances.difference(self._allDances))
if len(additionalDances) > 0: if len(additionalDances) > 0:
self.l.warning('There were dances found, that are not registered. A bug? The dances were: %s', additionalDances) self.l.error('There were dances found, that are not registered. A bug? The dances were: %s', additionalDances)
dancesList = [x for x in self._allDances if x in dances] dancesList = [x for x in self._allDances if x in dances]
additionalDancesList = list(additionalDances) additionalDancesList = list(additionalDances)