From 71309f86fb1cffb09d3a8a64606675a1bdf060d7 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 22 Sep 2022 04:22:21 +0200 Subject: [PATCH] order by viewer count --- files/routes/static.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/routes/static.py b/files/routes/static.py index b1ef00c2c4..5db41b7ba3 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -489,4 +489,5 @@ if SITE_NAME == 'PCM': try: offline.append((req.url, y.group(2), y.group(1))) except: print(x) + live = sorted(live, key=lambda x: x[4], reverse=True) return render_template(f'live.html', v=v, live=live, offline=offline) \ No newline at end of file