mirror of
https://github.com/titanscouting/tra-superscript.git
synced 2024-12-30 19:39:09 +00:00
fixed pit processing issue due to config change
This commit is contained in:
parent
d017ec52a7
commit
15f95b778b
@ -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