Исправлены ошибки 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:
2026-01-16 18:10:40 +03:00
parent 9cfe99ff7e
commit 72089d1b47
4 changed files with 68 additions and 33 deletions

View File

@@ -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