diff --git a/competition/module.py b/competition/module.py index eaeed4c..a2eec3a 100644 --- a/competition/module.py +++ b/competition/module.py @@ -174,8 +174,6 @@ class Metric (Module): def _process_data(self): - d.clear_metrics(self.apikey, self.competition) - elo_N = self.config["tests"]["elo"]["N"] elo_K = self.config["tests"]["elo"]["K"] diff --git a/competition/superscript.py b/competition/superscript.py index fa032aa..48aab1a 100644 --- a/competition/superscript.py +++ b/competition/superscript.py @@ -154,7 +154,7 @@ import pymongo # soon to be deprecated import traceback import warnings from config import Configuration, ConfigurationError -from data import get_previous_time, set_current_time, check_new_database_matches +from data import get_previous_time, set_current_time, check_new_database_matches, clear_metrics from interface import Logger from module import Match, Metric, Pit import zmq @@ -205,7 +205,7 @@ def main(logger, verbose, profile, debug, socket_send = None): config.resolve_config_conflicts(logger, client) config_modules, competition = config.modules, config.competition - + clear_metrics(client, config.competition) for m in config_modules: if m in modules: start = time.time()