From 69c6059ff888f5cc7b0e2f2af92d9464ca32b0a2 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Tue, 29 Mar 2022 21:17:58 +0000 Subject: [PATCH] added result logging for metric module --- competition/module.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/competition/module.py b/competition/module.py index 705da9c..69aa5b0 100644 --- a/competition/module.py +++ b/competition/module.py @@ -174,6 +174,8 @@ class Metric (Module): def _process_data(self): + self.results = {} + matches = self.data red = {} @@ -243,6 +245,8 @@ class Metric (Module): temp_vector.update(red) # update the team's score with the temporay vector temp_vector.update(blu) + self.results[match['match']] = temp_vector + d.push_metric(self.apikey, self.competition, temp_vector) # push new scores to db def _push_results(self):