Skip to content

Release 20250515#7

Merged
MistEO merged 1 commit intomainfrom
dev
May 15, 2025
Merged

Release 20250515#7
MistEO merged 1 commit intomainfrom
dev

Conversation

@MistEO
Copy link
Copy Markdown
Contributor

@MistEO MistEO commented May 15, 2025

No description provided.

@MistEO MistEO requested a review from Copilot May 15, 2025 06:32
@MistEO MistEO merged commit 65a48e7 into main May 15, 2025
1 check passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the handling of the afdian_id field in the query_details function by changing its parsing and return structure.

  • Changed afdian_info parsing from a list to a dictionary with explicit keys.
  • Modified error handling to check p.afdian_id and return appropriate error messages.
Comments suppressed due to low confidence (1)

src/plan/details.py:24

  • [nitpick] Consider renaming variable 'sp' to a more descriptive name (e.g., 'afdian_parts') to clarify its purpose.
sp = [s.strip() for s in p.afdian_id.split(",")]

"plan_id": afdian_info[0],
"sku_id": afdian_info[1],
},
"afdian_info": afdian_info,
Copy link

Copilot AI May 15, 2025

Choose a reason for hiding this comment

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

The change from a list to a dictionary (or potentially None) for 'afdian_info' alters the API response structure; update documentation to reflect this change for API consumers.

Copilot uses AI. Check for mistakes.
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