fix action_file

This commit is contained in:
yzqzss 2024-06-15 19:12:40 +08:00
parent c4cb589d6d
commit cae48c65e2

View File

@ -132,7 +132,7 @@ async def source_action(fun, source_type: str, source_id: str):
@app.get("/archive/{source_type}/{source_id}")
async def query_source_task(source_type: str, source_id: str):
action_file = f"tmp/source_{source_type}_{source_id}.action"
action_file = Path("tmp") / f"source_{source_type}_{source_id}.action"
if not os.path.exists(action_file):
return HTTPException(status_code=404, detail="Action file not found")