Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Mar 5, 2024
1 parent 9971333 commit 7ea1272
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backend/btrixcloud/storages.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ def organize_based_on_instance_number(
]
log_files.sort(key=lambda log_zipinfo: log_zipinfo.filename)

for log_zipinfo in page_files:
for log_zipinfo in log_files:
wacz_log_streams.append(
stream_log_lines(log_zipinfo, wacz_url, wacz_file.name)
)
Expand Down Expand Up @@ -665,8 +665,7 @@ def _sync_get_filestream(self, wacz_url: str, filename: str) -> Iterator[bytes]:
"""Return iterator of lines in remote file as bytes"""
with RemoteZip(wacz_url) as remote_zip:
with remote_zip.open(filename) as file_stream:
for line in file_stream:
yield line
yield from file_stream

def _sync_dl(
self, all_files: List[CrawlFileOut], client: S3Client, bucket: str, key: str
Expand Down

0 comments on commit 7ea1272

Please sign in to comment.