Make table matching between files more robust

This commit is contained in:
Christian Wolf 2023-11-19 18:27:15 +01:00
parent 6c6b8485fc
commit f182f4fbcc

View File

@ -498,10 +498,15 @@ class Worker:
if group not in activeGroups:
continue
fixture = importedData.htmlResults.tabges[tup]
if fixture[2] is not None and fixture[2] != group:
self.l.log(5, "Skipping id %s in group %s as not part", tup[3], group)
continue
fixture = importedData.htmlResults.tabges.get(tup, None)
if fixture is None:
self.l.error("A fixture for the tuple %s could not be read.", tup)
else:
if fixture[2] is not None and fixture[2] != group:
self.l.log(
5, "Skipping id %s in group %s as not part", tup[3], group
)
continue
part = importedData.htmlResults.results[tup][0]
part.id = int(tup[3])