wuvt / trackman

WUVT's track logging web-app
GNU Affero General Public License v3.0
4 stars 3 forks source link

BMI report doesn't sort output by date #71

Open echarlie opened 5 years ago

echarlie commented 5 years ago

a BMI report export randomizes the sort order, rather than ordering by date.

This should be easily fixed in https://github.com/wuvt/trackman/blob/master/trackman/admin/views.py#L99 with an order_by(Tracklog.played) directive, per the example in https://docs.sqlalchemy.org/en/latest/orm/tutorial.html#returning-lists-and-scalars