We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fde712 commit 711f25dCopy full SHA for 711f25d
src/plan/details.py
@@ -15,12 +15,12 @@ async def query_details(plan_id: str):
15
return {"ec": 400, "msg": "plan_id is required"}
16
17
p = next((p for p in get_plan_cache() if p.plan_id == plan_id), None)
18
- if not plan_id:
+ if not p:
19
logger.error(f"plan_id not found")
20
return {"ec": 404, "msg": "plan_id not found"}
21
22
23
- afdian_info = [s.strip() for s in p.afdian_info.split(",")]
+ afdian_info = [s.strip() for s in p.afdian_id.split(",")]
24
if len(afdian_info) != 2:
25
logger.error(f"afdian_info is invalid")
26
return {"ec": 500, "msg": "afdian_info is invalid"}
0 commit comments