Skip to content

Commit

Permalink
Strip oid directory from WACZ file name
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Jan 30, 2025
1 parent fc3ccbc commit 1af42ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/btrixcloud/storages.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ def stream_page_lines(
line_iter: Iterator[bytes] = self._sync_get_filestream(wacz_url, filename)
for line in line_iter:
page_json = _parse_json(line.decode("utf-8", errors="ignore"))
page_json["filename"] = wacz_filename
page_json["filename"] = os.path.basename(wacz_filename)
yield page_json

page_generators: List[Iterator[Dict[Any, Any]]] = []
Expand Down

0 comments on commit 1af42ce

Please sign in to comment.