This commit is contained in:
parent
1f5b21a13a
commit
22b1513271
@ -181,16 +181,14 @@ def main():
|
|||||||
current = datetime.now()
|
current = datetime.now()
|
||||||
|
|
||||||
if api:
|
if api:
|
||||||
print(
|
dump_api_message(
|
||||||
json.dumps(
|
"answer",
|
||||||
{
|
{
|
||||||
"type": "answer",
|
"answer": i_answer + 1,
|
||||||
"answer": i_answer + 1,
|
"value": answer,
|
||||||
"value": answer,
|
"answerTime_s": (current - last).total_seconds(),
|
||||||
"answerTime_s": (current - last).total_seconds(),
|
"totalTime_s": (current - start).total_seconds(),
|
||||||
"totalTime_s": (current - start).total_seconds(),
|
},
|
||||||
}
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
print(
|
print(
|
||||||
|
Loading…
Reference in New Issue
Block a user