added opotion to pull config from database,

major code refactor


Former-commit-id: da913e639b
This commit is contained in:
Arthur Lu
2021-09-23 07:10:01 +00:00
parent 09b8cca884
commit 96ebb82085
3 changed files with 265 additions and 205 deletions

View File

@@ -81,12 +81,13 @@ def matchloop(client, competition, data, tests, exec_threads):
return return_vector
def metricloop(tbakey, client, competition, timestamp, metrics): # listener based metrics update
def metricloop(client, competition, data, metrics): # listener based metrics update
elo_N = metrics["elo"]["N"]
elo_K = metrics["elo"]["K"]
matches = pull_new_tba_matches(tbakey, competition, timestamp)
matches = data
#matches = pull_new_tba_matches(tbakey, competition, timestamp)
red = {}
blu = {}