Added another field
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Pünkösd Marcell 2021-06-14 03:48:13 +02:00
parent cb18bd52ac
commit 27b2d062ae
1 changed files with 1 additions and 0 deletions

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,