Skip to content

#Fix: Input Validation Grade Range #19

Merged
xenonnn4w merged 1 commit intocyclohexane-2:mainfrom
kryptonn36:fix-issue-3
Dec 24, 2025
Merged

#Fix: Input Validation Grade Range #19
xenonnn4w merged 1 commit intocyclohexane-2:mainfrom
kryptonn36:fix-issue-3

Conversation

@kryptonn36
Copy link
Contributor

@kryptonn36 kryptonn36 commented Dec 17, 2025

Fix

  • Add Input Validation for Grade Range #3
    This change ensures that only integer values are accepted when adding grades, preventing invalid data types from being stored. A TypeError is raised early if a non-integer value is provided, improving data integrity and making error handling more explicit.

@xenonnn4w
Copy link
Contributor

Either solve #3 or #4 in one PR.

utils.py Outdated

def get_priority_level(days_remaining):
"""Determine priority based on days remaining"""
"""Determine priority based on days remaining
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove these changes

@kryptonn36 kryptonn36 changed the title #Fix issue 3 #Fix: Input Validation Grade Range Dec 24, 2025
@xenonnn4w
Copy link
Contributor

lgtm!

@xenonnn4w xenonnn4w merged commit f51463e into cyclohexane-2:main Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants