Skip to content

added function to sanitize codename input for SQL safety - #44

Merged
thatgirlginger merged 2 commits into
otwcode:masterfrom
thatgirlginger:master
Sep 14, 2026
Merged

thatgirlginger merged 2 commits into
otwcode:masterfrom
thatgirlginger:master

Conversation

@thatgirlginger

Copy link
Copy Markdown
Contributor

(bug fix for the actual bug my oopsie highlighted)

added function to utils.py that strips all punctuation, spaces, and numbers, lowers the string, and truncates it at 10 characters; also reworked the argument handling so that all codename inputs are automatically sanitized.

additionally, bumped the cffi version to 1.17 in requirements.txt, as build fails on MacOS Sequoia

@thatgirlginger

Copy link
Copy Markdown
Contributor Author

JIRA ticket for the arg SQL safety sanitization: OD-2212
JIRA ticket for the failed CFFI build: OD-2214

@brianna-dardin brianna-dardin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks great, thank you!

@thatgirlginger
thatgirlginger merged commit 33140dc into otwcode:master Sep 14, 2026
3 checks passed
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