From 1b7eb7cb87e28a88ca1ed92bc570ef98e0b16bad Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 21 Dec 2022 01:00:26 +0200 Subject: [PATCH] Revert "add print statements for debugging /stats" This reverts commit a7ec033698cee2eed40b105407127de80455b134. --- files/helpers/cron.py | 3 --- files/routes/static.py | 2 -- 2 files changed, 5 deletions(-) diff --git a/files/helpers/cron.py b/files/helpers/cron.py index 8c44580a2..6f8f65f04 100644 --- a/files/helpers/cron.py +++ b/files/helpers/cron.py @@ -43,10 +43,7 @@ def cron(every_5m, every_1h, every_1d, every_1mo): stats.generate_charts_task(SITE) _sub_inactive_purge_task() site_stats = stats.stats(SITE_NAME) - print(site_stats, flush=True) cache.set(f'{SITE}_stats', site_stats) - print('redised', flush=True) - print(cache.get(f'{SITE}_stats'), flush=True) if every_1mo: if KOFI_LINK: _give_monthly_marseybux_task_kofi() diff --git a/files/routes/static.py b/files/routes/static.py index a06cf16ff..c776dac2c 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -84,9 +84,7 @@ def sidebar(v:Optional[User]): @app.get("/stats") @auth_required def participation_stats(v:User): - print(cache.get(f'{SITE}_stats'), flush=True) stats = cache.get(f'{SITE}_stats') or {} - print(stats, flush=True) if v.client: return stats return render_template("stats.html", v=v, title="Content Statistics", data=stats)