hide braincels too

master
Aevann1 2022-08-15 20:48:02 +02:00
parent c3ae81a7f6
commit 5d39c9dfbb
2 changed files with 6 additions and 6 deletions

View File

@ -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):

View File

@ -20,11 +20,11 @@
{% for sub, count in subs %}
<tr>
<td {% if sub.name == 'smuggies' %}class="text-danger"{% endif %}>{{loop.index}}</td>
<td><a href="/h/{{sub.name}}" {% if sub.name == 'smuggies' %}class="text-danger"{% endif %}>{{sub.name}}</a></td>
<td><a href="/h/{{sub.name}}" {% if sub.name == 'smuggies' %}class="text-danger"{% endif %}>{{count}}</a></td>
<td><a href="/h/{{sub.name}}/followers" {% if sub.name == 'smuggies' %}class="text-danger"{% endif %}>{{sub.follow_num}}</a></td>
<td><a href="/h/{{sub.name}}/blockers" {% if sub.name == 'smuggies' %}class="text-danger"{% endif %}>{{sub.block_num}}</a></td>
<td {% if sub.name in ['smuggies','braincels'] %}class="text-danger"{% endif %}>{{loop.index}}</td>
<td><a href="/h/{{sub.name}}" {% if sub.name in ['smuggies','braincels'] %}class="text-danger"{% endif %}>{{sub.name}}</a></td>
<td><a href="/h/{{sub.name}}" {% if sub.name in ['smuggies','braincels'] %}class="text-danger"{% endif %}>{{count}}</a></td>
<td><a href="/h/{{sub.name}}/followers" {% if sub.name in ['smuggies','braincels'] %}class="text-danger"{% endif %}>{{sub.follow_num}}</a></td>
<td><a href="/h/{{sub.name}}/blockers" {% if sub.name in ['smuggies','braincels'] %}class="text-danger"{% endif %}>{{sub.block_num}}</a></td>
</tr>
{% endfor %}
</table>