fix: Next and last goal logic

This commit is contained in:
2025-10-30 23:21:11 +10:00
parent 21cf65398c
commit 89f9ce3ffa

View File

@@ -92,12 +92,11 @@ async def prepare_subathon(
name=goal.description,
)
goalps.append(goalp)
if goal.required_score >= total_score:
if goal.required_score <= total_score:
last_goalp = goalp
goals_met += 1
else:
elif next_goalp is None:
next_goalp = goalp
break
# Build the last contribution information
contribs = await subathon.fetch_contributions().limit(1)