From a1fc1a997270769de594f1b974651186a63ce34c Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 16 Feb 2024 00:03:01 +0200 Subject: [PATCH] shorter var --- files/classes/hole.py | 2 +- files/templates/hole/holes.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/classes/hole.py b/files/classes/hole.py index 95c9c5a70..62bd1c3d5 100644 --- a/files/classes/hole.py +++ b/files/classes/hole.py @@ -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 diff --git a/files/templates/hole/holes.html b/files/templates/hole/holes.html index d38d40447..37f406a36 100644 --- a/files/templates/hole/holes.html +++ b/files/templates/hole/holes.html @@ -22,7 +22,7 @@ {{count}} {{hole.follow_num}} {% if hole.stealth %} - {{total_users - hole.stealth_hole_unblock_number}} + {{total_users - hole.stealth_hole_unblock_num}} {% else %} {{hole.block_num}} {% endif %}