Browse code
changed recent user ordering
fiddlerwoaroof authored on 19/10/2015 20:20:41
Showing 1 changed files
Showing 1 changed files
... | ... |
@@ -149,7 +149,7 @@ def active(): |
149 | 149 |
result = dict(status=False, data=[]) |
150 | 150 |
with database.get_db() as db: |
151 | 151 |
with db.cursor() as cur: |
152 |
- cur.execute("SELECT * FROM recently_active_users LIMIT 10") |
|
152 |
+ cur.execute("SELECT * FROM recently_active_users ORDER BY posted DESC LIMIT 10") |
|
153 | 153 |
result['status'] = True |
154 | 154 |
store = result['data'] |
155 | 155 |
for id,name,last_posted in cur.fetchall(): |