mirror of
https://github.com/titanscouting/tra-superscript.git
synced 2024-12-29 02:59:08 +00:00
added result logging for metric module
This commit is contained in:
parent
fdcdadb8b2
commit
69c6059ff8
@ -174,6 +174,8 @@ class Metric (Module):
|
|||||||
|
|
||||||
def _process_data(self):
|
def _process_data(self):
|
||||||
|
|
||||||
|
self.results = {}
|
||||||
|
|
||||||
matches = self.data
|
matches = self.data
|
||||||
|
|
||||||
red = {}
|
red = {}
|
||||||
@ -243,6 +245,8 @@ class Metric (Module):
|
|||||||
temp_vector.update(red) # update the team's score with the temporay vector
|
temp_vector.update(red) # update the team's score with the temporay vector
|
||||||
temp_vector.update(blu)
|
temp_vector.update(blu)
|
||||||
|
|
||||||
|
self.results[match['match']] = temp_vector
|
||||||
|
|
||||||
d.push_metric(self.apikey, self.competition, temp_vector) # push new scores to db
|
d.push_metric(self.apikey, self.competition, temp_vector) # push new scores to db
|
||||||
|
|
||||||
def _push_results(self):
|
def _push_results(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user