Fix answer API model.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Mikaël Capelle 2024-12-07 12:21:57 +01:00
parent 1f5b21a13a
commit 22b1513271

View File

@ -181,16 +181,14 @@ def main():
current = datetime.now()
if api:
print(
json.dumps(
{
"type": "answer",
"answer": i_answer + 1,
"value": answer,
"answerTime_s": (current - last).total_seconds(),
"totalTime_s": (current - start).total_seconds(),
}
)
dump_api_message(
"answer",
{
"answer": i_answer + 1,
"value": answer,
"answerTime_s": (current - last).total_seconds(),
"totalTime_s": (current - start).total_seconds(),
},
)
else:
print(