mirror of
https://github.com/titanscouting/tra-superscript.git
synced 2024-11-09 22:44:44 +00:00
fixed pit processing issue due to config change
Former-commit-id: 15f95b778b
This commit is contained in:
parent
c4bb633e08
commit
b0ffdbab9a
@ -298,10 +298,12 @@ class Pit (Module):
|
|||||||
self.data = d.load_pit(self.apikey, self.competition)
|
self.data = d.load_pit(self.apikey, self.competition)
|
||||||
|
|
||||||
def _process_data(self, exec_threads):
|
def _process_data(self, exec_threads):
|
||||||
|
tests = self.config["tests"]
|
||||||
|
print(tests)
|
||||||
return_vector = {}
|
return_vector = {}
|
||||||
for team in self.data:
|
for team in self.data:
|
||||||
for variable in self.data[team]:
|
for variable in self.data[team]:
|
||||||
if variable in self.config:
|
if variable in tests:
|
||||||
if not variable in return_vector:
|
if not variable in return_vector:
|
||||||
return_vector[variable] = []
|
return_vector[variable] = []
|
||||||
return_vector[variable].append(self.data[team][variable])
|
return_vector[variable].append(self.data[team][variable])
|
||||||
|
Loading…
Reference in New Issue
Block a user