diff --git a/monkey_island/cc/resources/telemetry_feed.py b/monkey_island/cc/resources/telemetry_feed.py index 8e4d68212..9a7e507ef 100644 --- a/monkey_island/cc/resources/telemetry_feed.py +++ b/monkey_island/cc/resources/telemetry_feed.py @@ -18,7 +18,8 @@ class TelemetryFeed(flask_restful.Resource): telemetries = mongo.db.telemetry.find({}) else: telemetries = mongo.db.telemetry.find({'timestamp': {'$gt': dateutil.parser.parse(timestamp)}})\ - .sort([('timestamp', flask_pymongo.ASCENDING)]) + + telemetries = telemetries.sort([('timestamp', flask_pymongo.ASCENDING)]) return \ {