Jun 24 - Implement devices tracker - Fix 500 error
This commit is contained in:
@@ -25,7 +25,7 @@ def index():
|
||||
"""Show all registered devices, most-recently-seen first."""
|
||||
devices = (
|
||||
DeviceToken.query
|
||||
.order_by(DeviceToken.last_seen_at.desc().nullslast())
|
||||
.order_by(DeviceToken.registered_at.desc())
|
||||
.all()
|
||||
)
|
||||
return render_template('admin/devices.html', devices=devices)
|
||||
@@ -96,4 +96,4 @@ def notify_update():
|
||||
f'Update notice sent to {notified} user(s) on {len(outdated)} outdated device(s).',
|
||||
'success'
|
||||
)
|
||||
return redirect(url_for('devices.index'))
|
||||
return redirect(url_for('devices.index'))
|
||||
Reference in New Issue
Block a user