Skip to content

Claude/update api calls b y899#31

Merged
idio-sync merged 3 commits intomainfrom
claude/update-api-calls-bY899
Jan 21, 2026
Merged

Claude/update api calls b y899#31
idio-sync merged 3 commits intomainfrom
claude/update-api-calls-bY899

Conversation

@idio-sync
Copy link
Owner

No description provided.

API change: The /api/roms endpoint now requires the pluralized form
'platform_ids' to match the new multi-value parameter format.
- Add shared find_platform_by_name() method to RommBot class
- Remove duplicate find_platform_by_name() from search.py cog
- Update firmware(), random(), search() commands to reuse fetched
  platform data instead of re-fetching 2-3 times per command
- Update scan.py to use shared method instead of inline logic

This eliminates 6+ redundant API calls across the codebase and
centralizes platform lookup logic for easier maintenance.
Send both platform_id and platform_ids in API queries to support
both old and new RomM versions:
- Old RomM: uses platform_id, ignores platform_ids
- New RomM: uses platform_ids, ignores platform_id
@idio-sync idio-sync merged commit e5c83e8 into main Jan 21, 2026
1 check passed
@idio-sync idio-sync deleted the claude/update-api-calls-bY899 branch January 21, 2026 17:03
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