Skip to content

Commit 2ece467

Browse files
committed
refactor: restore checkers property name
1 parent 60129d7 commit 2ece467

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

prophecies/core/models/task_record.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ def __str__(self):
6262
return f'Record #{self.id} to be review in {self.task.name}'
6363

6464
@cached_property
65-
def checkers_list(self):
65+
def checkers(self):
6666
checkers = [review.checker for review in self.reviews.all()]
6767
return list(filter(None, checkers))
6868

6969
@cached_property
7070
def checkers_pretty(self):
7171
# Extract only the usernames
72-
usernames = [checker.username for checker in self.checkers_list]
72+
usernames = [checker.username for checker in self.checkers]
7373
count = len(usernames)
7474
# Use the correct format depending on the count or use `many`
7575
return {0: lambda u: 'nobody', 1: lambda u: u[0], 2: lambda u: ' and '.join(u), }.\
@@ -99,7 +99,7 @@ def actions(self):
9999
return Action.objects.public(self.actions_query | self.reviews_actions_query)
100100

101101
def can_lock(self, user):
102-
checkers_ids = [checker.id for checker in self.checkers_list]
102+
checkers_ids = [checker.id for checker in self.checkers]
103103
return not self.locked and user.id in checkers_ids
104104

105105
def can_unlock(self, user):

0 commit comments

Comments
 (0)