From 97b2e09b651983bd859e4f99fe096f9c24a431cc Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 25 Sep 2022 06:31:59 +0200 Subject: [PATCH] fix --- files/routes/static.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index 730166426..a50173a02 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -460,7 +460,7 @@ if SITE == 'pcmemes.net': t = offline_regex.search(text) y = offline_details_regex.search(text) - quantity = y.group(1) + quantity = int(y.group(1)) unit = y.group(2) if unit == 'minuten': @@ -479,12 +479,10 @@ if SITE == 'pcmemes.net': unit = 'year' modifier = 525600 - print(unit, flush=True) - minutes = quantity * modifier - if quantity > 1: unit += 's' - actual = quantity + ' ' + unit + actual = f'{quantity} {unit}' + if quantity > 1: actual += 's' try: return_val = (False, (id, req.url.rstrip('/live'), t.group(2), t.group(1), minutes, actual, y.group(3))) @@ -514,6 +512,8 @@ if SITE == 'pcmemes.net': return live, offline + live_cached() + @app.get('/live') @app.get('/logged_out/live') @auth_desired_with_logingate