Merge pull request #466 from VakarisZ/telem_brief_fix

Fixed bug in telemetry feed
This commit is contained in:
VakarisZ 2019-10-15 11:01:19 +03:00 committed by GitHub
commit d702fc3b19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: