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 @property
@lazy @lazy
def all_blocks(self): 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 @lazy
def blocks(self, sub): def blocks(self, sub):

View File

@ -20,11 +20,11 @@
{% for sub, count in subs %} {% for sub, count in subs %}
<tr> <tr>
<td {% if sub.name == 'smuggies' %}class="text-danger"{% endif %}>{{loop.index}}</td> <td {% if sub.name in ['smuggies','braincels'] %}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 in ['smuggies','braincels'] %}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}}" {% if sub.name in ['smuggies','braincels'] %}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}}/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 == 'smuggies' %}class="text-danger"{% endif %}>{{sub.block_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> </tr>
{% endfor %} {% endfor %}
</table> </table>