Added another field
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2021-06-14 03:48:13 +02:00
parent cb18bd52ac
commit 27b2d062ae

View File

@ -43,6 +43,7 @@ async def on_message(message: IncomingMessage):
k: float(v) for k, v in msg_json['all_predictions'].items()
}
fields['_classification_duration'] = float(msg_json['classification_duration'])
fields['_legacy_result'] = 1.0 if msg_json['class'] == 'sturnus' else 0.0
point = {
'time': now,