mirror of
https://github.com/titanscouting/tra-superscript.git
synced 2024-11-10 06:54:45 +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):
|
def _process_data(self):
|
||||||
|
|
||||||
d.clear_metrics(self.apikey, self.competition)
|
|
||||||
|
|
||||||
elo_N = self.config["tests"]["elo"]["N"]
|
elo_N = self.config["tests"]["elo"]["N"]
|
||||||
elo_K = self.config["tests"]["elo"]["K"]
|
elo_K = self.config["tests"]["elo"]["K"]
|
||||||
|
|
||||||
|
@ -154,7 +154,7 @@ import pymongo # soon to be deprecated
|
|||||||
import traceback
|
import traceback
|
||||||
import warnings
|
import warnings
|
||||||
from config import Configuration, ConfigurationError
|
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 interface import Logger
|
||||||
from module import Match, Metric, Pit
|
from module import Match, Metric, Pit
|
||||||
import zmq
|
import zmq
|
||||||
@ -205,7 +205,7 @@ def main(logger, verbose, profile, debug, socket_send = None):
|
|||||||
config.resolve_config_conflicts(logger, client)
|
config.resolve_config_conflicts(logger, client)
|
||||||
|
|
||||||
config_modules, competition = config.modules, config.competition
|
config_modules, competition = config.modules, config.competition
|
||||||
|
clear_metrics(client, config.competition)
|
||||||
for m in config_modules:
|
for m in config_modules:
|
||||||
if m in modules:
|
if m in modules:
|
||||||
start = time.time()
|
start = time.time()
|
||||||
|
Loading…
Reference in New Issue
Block a user