Update evolution/cards endpoint to refractor/cards in card embed helper #113
Labels
No Label
ai-changes-requested
ai-failed
ai-pr-opened
ai-reviewed
ai-reviewing
ai-working
ai-working
bug
enhancement
feature
in-queue
performance
security
tech-debt
todo
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-discord#113
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The card embed helper (
helpers/main.py) currently callsevolution/cards/{card_id}to fetch Refractor tier data for the badge prefix inget_card_embeds().When the database API rename deploys (renaming the
evolutionpath torefractor), this endpoint call will break. The URL must be updated torefractor/cards/{card_id}.Action Required
Update the API endpoint in
helpers/main.py(get_card_embeds()) from:to:
Context
try/exceptfallback inget_card_embeds()means the API rename will not hard-break card display — badges will simply stop appearing until this is updatedDependency
cal/paper-dynasty-database)/refractor/cards/endpoint is live on prod, update this call and deploy the botPR #114 opened: #114
Single-line fix in
helpers/main.py— changedevolution/cards/{card['id']}torefractor/cards/{card['id']}. Do not merge until the/refractor/cards/endpoint is confirmed live on prod.