mirror of
https://github.com/titanscouting/tra-superscript.git
synced 2025-02-07 04:15:46 +00:00
clear metrics only on script start
This commit is contained in:
parent
ac8002aaf8
commit
82ec2d85cc
@ -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"]
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user