Add achievement export support

This commit is contained in:
Golumpa 2026-08-19 13:00:09 +01:00
parent 40b44521aa
commit 5fe39b96ae
15 changed files with 197 additions and 55 deletions

View file

@ -27,7 +27,10 @@ class AchievementRecord:
def status(self) -> str:
if self.completed:
return "completed"
return "in_progress" if self.progress else "not_started"
# Presence in the server response means the achievement has tracked
# state. Compound achievements can have hidden checklist progress while
# exposing a numeric progress value of zero to the client.
return "in_progress"
@property
def completed_at(self) -> str | None: