From 84f4256c8143f780df15162d91474bf657bfc760 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 23 Sep 2022 23:01:38 +0200 Subject: [PATCH] fix last commit --- files/routes/static.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index d14629156..d0c8344f4 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -474,7 +474,7 @@ if SITE == 'pcmemes.net': @app.get('/logged_out/live') @auth_desired_with_logingate def live(v): - live_cached = cache.get('live_cached', ((),())) + live_cached = cache.get('live_cached') or [[],[]] return render_template('live.html', v=v, live=live_cached[0], offline=live_cached[1]) @@ -483,7 +483,7 @@ if SITE == 'pcmemes.net': def live_add(v): id = request.values.get('id') - live_cached = cache.get('live_cached', ((),())) + live_cached = cache.get('live_cached') or [[],[]] if not id or len(id) != 24: return render_template('live.html', v=v, live=live_cached[0], offline=live_cached[1], error="Invalid ID") @@ -509,5 +509,5 @@ if SITE == 'pcmemes.net': send_repeatable_notification(KIPPY_ID, f"@{v.username} has removed a [YouTube channel](https://www.youtube.com/channel/{streamer.id})") g.db.delete(streamer) - live_cached = cache.get('live_cached', ((),())) + live_cached = cache.get('live_cached') or [[],[]] return render_template('live.html', v=v, live=live_cached()[0], offline=live_cached()[1], msg="Channel removed successfuly!") \ No newline at end of file