Skip to content

Commit fc47632

Browse files
committed
Fix: path to author_build log file
1 parent 6a3efdf commit fc47632

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • bases/rsptx/author_server_api

bases/rsptx/author_server_api/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,9 @@ async def subchapmap(
313313
@app.get("/author/getlog/{book}")
314314
async def getlog(request: Request, book, user=Depends(auth_manager)):
315315
book_entry = await fetch_library_book(book)
316-
if (
316+
if (pathlib.Path(f"/books/{book}") / "author_build.log").exists():
317+
work_dir = f"/books/{book}"
318+
elif (
317319
book_entry
318320
and book_entry.repo_path
319321
and (pathlib.Path(book_entry.repo_path) / "author_build.log").exists()

0 commit comments

Comments
 (0)