mirror of
https://github.com/FAUSheppy/skillbird
synced 2025-12-09 07:58:32 +01:00
[git fast commit] 02. Feb 2019 - 23:44:56
This commit is contained in:
@@ -9,7 +9,7 @@ def handleInput(data):
|
||||
no_log_in_console = False
|
||||
data, ident = get_event_ident(data)
|
||||
tmp = ''
|
||||
|
||||
print(data)
|
||||
if data.startswith("quality,"):
|
||||
t1, t2 = parse_teams(data.lstrip("quality,"))
|
||||
tmp = TS.quality(t1.values(),t2.values(),t1.keys(), t2.keys())
|
||||
@@ -42,7 +42,7 @@ def handleInput(data):
|
||||
else:
|
||||
print("wtf input: "+data)
|
||||
if tmp == '':
|
||||
return
|
||||
return ("EMPTY")
|
||||
ret = str(ident+str(tmp)).encode('utf-8')
|
||||
if not no_log_in_console and ret:
|
||||
print(ret)
|
||||
|
||||
@@ -44,7 +44,7 @@ def parse(f, exit_on_eof=True, start_at_end=False):
|
||||
|
||||
lineCount += 1
|
||||
if lineCount % 100000 == 0:
|
||||
diff = datetime.now()-startTime
|
||||
diff = datetime.now() - startTime
|
||||
print("At Line: {} Tot: {} Per 100k:{}".format(\
|
||||
lineCount, diff, diff/(lineCount/100000)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user