mirror of
https://github.com/saveweb/biliarchiver.git
synced 2024-09-19 11:05:28 -07:00
fix action_file
This commit is contained in:
parent
c4cb589d6d
commit
cae48c65e2
@ -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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user