From 5d39c9dfbb6fc7af2377b628dabd7f65946a14e1 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 15 Aug 2022 20:48:02 +0200 Subject: [PATCH] hide braincels too --- files/classes/user.py | 2 +- files/templates/sub/subs.html | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/files/classes/user.py b/files/classes/user.py index 799632416..8a440f1e3 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -173,7 +173,7 @@ class User(Base): @property @lazy def all_blocks(self): - return ['smuggies'] + [x[0] for x in g.db.query(SubBlock.sub).filter_by(user_id=self.id).all()] + return ['smuggies','braincels'] + [x[0] for x in g.db.query(SubBlock.sub).filter_by(user_id=self.id).all()] @lazy def blocks(self, sub): diff --git a/files/templates/sub/subs.html b/files/templates/sub/subs.html index acbfd488c..cdae0aef8 100644 --- a/files/templates/sub/subs.html +++ b/files/templates/sub/subs.html @@ -20,11 +20,11 @@ {% for sub, count in subs %} - {{loop.index}} - {{sub.name}} - {{count}} - {{sub.follow_num}} - {{sub.block_num}} + {{loop.index}} + {{sub.name}} + {{count}} + {{sub.follow_num}} + {{sub.block_num}} {% endfor %}