Archived
fix: null reference when ending highest amount without any shares
This commit is contained in:
1 parent
1b10d2841f
commit
a72155d64a
1 file changed
+4
-2
@@ -42,8 +42,10 @@ class HighestAmount(Scoring):
|
||||
return 0
|
||||
|
||||
def calculate_end_score(self) -> ItemShare | None:
|
||||
self.max.score = 1
|
||||
return self.max
|
||||
if self.max:
|
||||
self.max.score = 1
|
||||
return self.max
|
||||
return None
|
||||
|
||||
|
||||
class FirstThenHighest(Scoring):
|
||||
|
||||
Reference in new issue
Block a user