Skip to content

fix(ctf): align profile/share hint-cost scoring with stats endpoint#466

Open
nitinawari wants to merge 1 commit intoGenAI-Security-Project:mainfrom
nitinawari:fix/public-profile-points
Open

fix(ctf): align profile/share hint-cost scoring with stats endpoint#466
nitinawari wants to merge 1 commit intoGenAI-Security-Project:mainfrom
nitinawari:fix/public-profile-points

Conversation

@nitinawari
Copy link
Copy Markdown
Contributor

close #465
What changed

  • Updated profile/share scoring paths to load all progress rows for the user.
  • Kept completion metrics based on status == "completed" for completion-related counts.
  • Calculated hints_cost from all progress rows so point deductions match /api/v1/stats.

Impact

  • total_points displayed in profile/share now matches stats behavior.
  • No intended change to completion counts, category progress logic, or activity feed semantics.
point-2.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug:Align Profile/Share Scoring with Stats Hint-Cost Logic

1 participant