Skip to content

fix: validate PercentageToMarkComplete range (0-100)#94

Merged
Wraient merged 1 commit into
Wraient:mainfrom
anas1412:fix/percentage-validation
May 12, 2026
Merged

fix: validate PercentageToMarkComplete range (0-100)#94
Wraient merged 1 commit into
Wraient:mainfrom
anas1412:fix/percentage-validation

Conversation

@anas1412
Copy link
Copy Markdown
Contributor

Prevents crashes from impossible values:

  • Negative numbers (e.g. -50) → clamped to 0
  • Values over 100 (e.g. 200) → clamped to 100
    0 is allowed (marks episode instantly) and 100 is allowed (must watch fully).

@Wraient Wraient merged commit 6a0c2b9 into Wraient:main May 12, 2026
@anas1412 anas1412 deleted the fix/percentage-validation branch May 14, 2026 07:08
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.

2 participants