forked from p15670423/monkey
Always sort telemetry feed
This commit is contained in:
parent
a5eaea8796
commit
a76cf7e3f8
|
@ -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 \
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue