From 12ceae5677782b153681d23d2fb07d44b7b0a5e2 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 6 Nov 2022 08:21:58 +0200 Subject: [PATCH] stop spamming console --- files/routes/front.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index 656e595a43..8330c7618a 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -146,10 +146,11 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, ccmode="false" social_found = False music_found = False for post in posts: - print(post.sub, flush=True) + if v and v.id == AEVANN_ID: print(post.sub, flush=True) if post.sub == 'social': - print(post.id, flush=True) - print(social_found, flush=True) + if v and v.id == AEVANN_ID: + print(post.id, flush=True) + print(social_found, flush=True) if social_found: posts.remove(post) else: social_found = True elif post.sub == 'music':