Reenable checking of additional dance to make bugs more prominent
This commit is contained in:
parent
8298cd85a8
commit
638b2a3002
@ -506,17 +506,17 @@ class Worker:
|
||||
|
||||
dances = set()
|
||||
additionalDances = set()
|
||||
foundDances = set()
|
||||
for tup in data.htmlResults.results.keys():
|
||||
if not groupParser.parseClass(tup[0]) == group:
|
||||
continue
|
||||
dances.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))
|
||||
foundDances.add(tup[2])
|
||||
|
||||
dances.update(foundDances.intersection(self._allDances))
|
||||
additionalDances.update(foundDances.difference(self._allDances))
|
||||
|
||||
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]
|
||||
additionalDancesList = list(additionalDances)
|
||||
|
Loading…
Reference in New Issue
Block a user