shorter var

pull/222/head
Aevann 2024-02-16 00:03:01 +02:00
parent ab91a9cbb6
commit a1fc1a9972
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ class Hole(Base):
@property
@lazy
def stealth_hole_unblock_number(self):
def stealth_hole_unblock_num(self):
return self.stealth_hole_unblocks.count()
@property

View File

@ -22,7 +22,7 @@
<td><a href="/h/{{hole}}">{{count}}</a></td>
<td><a href="/h/{{hole}}/followers">{{hole.follow_num}}</a></td>
{% if hole.stealth %}
<td>{{total_users - hole.stealth_hole_unblock_number}}</td>
<td>{{total_users - hole.stealth_hole_unblock_num}}</td>
{% else %}
<td><a href="/h/{{hole}}/blockers">{{hole.block_num}}</a></td>
{% endif %}