Fixed bug in telemetry feed

This commit is contained in:
VakarisZ 2019-10-14 14:27:36 +03:00
parent 68e2a83aac
commit 504436931d
1 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,8 @@ class TelemetryFeed(flask_restful.Resource):
try:
return \
{
'telemetries': [TelemetryFeed.get_displayed_telemetry(telem) for telem in telemetries if TelemetryFeed],
'telemetries': [TelemetryFeed.get_displayed_telemetry(telem) for telem in telemetries
if TelemetryFeed.should_show_brief(telem)],
'timestamp': datetime.now().isoformat()
}
except KeyError as err: