This commit is contained in:
cjw
2026-02-16 03:07:02 +08:00
parent 34a373a5a1
commit 06820ad8a2
+1 -1
View File
@@ -191,7 +191,7 @@ async def get_file_history(db_session: AsyncSession = Depends(get_db_session)):
@router.get("/api/history/{filename}")
@router.post("/api/history/{filename}")
async def get_file_records(filename: str):
async def get_file_records(filename: str, db_session: AsyncSession = Depends(get_db_session)):
"""获取指定文件名的所有记录"""
# URL解码文件名
import urllib.parse