Update evolution/cards endpoint to refractor/cards in card embed helper #113

Closed
opened 2026-03-23 20:05:57 +00:00 by cal · 1 comment
Owner

Summary

The card embed helper (helpers/main.py) currently calls evolution/cards/{card_id} to fetch Refractor tier data for the badge prefix in get_card_embeds().

When the database API rename deploys (renaming the evolution path to refractor), this endpoint call will break. The URL must be updated to refractor/cards/{card_id}.

Action Required

Update the API endpoint in helpers/main.py (get_card_embeds()) from:

evolution/cards/{card_id}

to:

refractor/cards/{card_id}

Context

  • Introduced in PR #88 (feat: Refractor tier badge prefix in card embed title)
  • Blocked on the database API rename deploying — do not merge this change until the database API has been updated and deployed
  • The current try/except fallback in get_card_embeds() means the API rename will not hard-break card display — badges will simply stop appearing until this is updated

Dependency

  • Database API rename must deploy first (cal/paper-dynasty-database)
  • After confirming the /refractor/cards/ endpoint is live on prod, update this call and deploy the bot
## Summary The card embed helper (`helpers/main.py`) currently calls `evolution/cards/{card_id}` to fetch Refractor tier data for the badge prefix in `get_card_embeds()`. When the database API rename deploys (renaming the `evolution` path to `refractor`), this endpoint call will break. The URL must be updated to `refractor/cards/{card_id}`. ## Action Required Update the API endpoint in `helpers/main.py` (`get_card_embeds()`) from: ``` evolution/cards/{card_id} ``` to: ``` refractor/cards/{card_id} ``` ## Context - Introduced in PR #88 (feat: Refractor tier badge prefix in card embed title) - Blocked on the database API rename deploying — do **not** merge this change until the database API has been updated and deployed - The current `try/except` fallback in `get_card_embeds()` means the API rename will not hard-break card display — badges will simply stop appearing until this is updated ## Dependency - Database API rename must deploy first (`cal/paper-dynasty-database`) - After confirming the `/refractor/cards/` endpoint is live on prod, update this call and deploy the bot
Claude added the
ai-working
ai-working
labels 2026-03-23 20:31:24 +00:00
Claude removed the
ai-working
label 2026-03-23 20:31:56 +00:00
Collaborator

PR #114 opened: #114

Single-line fix in helpers/main.py — changed evolution/cards/{card['id']} to refractor/cards/{card['id']}. Do not merge until the /refractor/cards/ endpoint is confirmed live on prod.

PR #114 opened: https://git.manticorum.com/cal/paper-dynasty-discord/pulls/114 Single-line fix in `helpers/main.py` — changed `evolution/cards/{card['id']}` to `refractor/cards/{card['id']}`. Do not merge until the `/refractor/cards/` endpoint is confirmed live on prod.
Claude added the
ai-pr-opened
label 2026-03-23 20:32:01 +00:00
cal closed this issue 2026-03-24 05:20:12 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cal/paper-dynasty-discord#113
No description provided.