Исправлены ошибки Wild Card и skip-assignment
- Wild Card: исправлен game.name → game.title - Wild Card: добавлена поддержка игр типа playthrough - points.py: добавлена проверка на None для challenge_points - PlaythroughInfo: поля сделаны Optional (description, points, proof_type) - organizer_skip_assignment: добавлен фильтр is_event_assignment Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -66,7 +66,7 @@ class PointsService:
|
||||
def calculate_drop_penalty(
|
||||
self,
|
||||
consecutive_drops: int,
|
||||
challenge_points: int,
|
||||
challenge_points: int | None,
|
||||
event: Event | None = None
|
||||
) -> int:
|
||||
"""
|
||||
@@ -80,6 +80,10 @@ class PointsService:
|
||||
Returns:
|
||||
Penalty points to subtract
|
||||
"""
|
||||
# No penalty if no points defined
|
||||
if challenge_points is None:
|
||||
return 0
|
||||
|
||||
# Double risk event = free drops
|
||||
if event and event.type == EventType.DOUBLE_RISK.value:
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user