Skip to content

Fix: Strip None values from orthology mapping API response#1207

Open
Swargambharath987 wants to merge 1 commit intoIGS:develfrom
Swargambharath987:fix/ortholog-mapping-strip-none
Open

Fix: Strip None values from orthology mapping API response#1207
Swargambharath987 wants to merge 1 commit intoIGS:develfrom
Swargambharath987:fix/ortholog-mapping-strip-none

Conversation

@Swargambharath987
Copy link

Fixes
#1150

The list comprehensions in both the GET and POST handlers of the orthologs API could include None values when normalize_gene() fails to find a match, which gets serialized
as null in the JSON response. Updated both comprehensions to filter out None results using a walrus operator guard.

@jorvis jorvis requested a review from adkinsrs March 1, 2026 04:46
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.

1 participant