mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-13 22:56:18 +00:00
a
This commit is contained in:
parent
9b1b3b50b3
commit
a8be0bab6a
@ -62,19 +62,24 @@ import time
|
|||||||
def main():
|
def main():
|
||||||
while(True):
|
while(True):
|
||||||
current_time = time.time()
|
current_time = time.time()
|
||||||
print("time is: " + time)
|
print("time: " + time)
|
||||||
|
|
||||||
print("loading config")
|
print("loading config")
|
||||||
competition, config = load_config("config.csv")
|
competition, config = load_config("config.csv")
|
||||||
print("config loaded")
|
print("config loaded")
|
||||||
|
|
||||||
print("loading database keys")
|
print("loading database keys")
|
||||||
apikey = an.load_csv("keys.txt")[0][0]
|
apikey = an.load_csv("keys.txt")[0][0]
|
||||||
print("loaded keys")
|
print("loaded keys")
|
||||||
|
|
||||||
print("loading data")
|
print("loading data")
|
||||||
data = d.get_data_formatted(apikey, competition)
|
data = d.get_data_formatted(apikey, competition)
|
||||||
print("loaded data")
|
print("loaded data")
|
||||||
|
|
||||||
print("running tests")
|
print("running tests")
|
||||||
results = simpleloop(data, config)
|
results = simpleloop(data, config)
|
||||||
print("finished tests")
|
print("finished tests")
|
||||||
|
|
||||||
print("pushing to database")
|
print("pushing to database")
|
||||||
push_to_database(apikey, competition, results, None)
|
push_to_database(apikey, competition, results, None)
|
||||||
print("pushed to database")
|
print("pushed to database")
|
||||||
|
Loading…
Reference in New Issue
Block a user