Skip to content

Commit

Permalink
Don't read into temp files
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Jun 8, 2024
1 parent 2d9f5b8 commit a5bc61d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions odds/common/store/s3/s3_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ async def getDB(self, resource: Resource, dataset: Dataset) -> str:
obj = await bucket.Object(key)
await obj.load()
# download the file into a temporary file:
key = key.replace('/', '_')
outfile = self.cachedir / f'{key}.sqlite'
if not outfile.exists():
await obj.download_file(str(outfile))
Expand Down

0 comments on commit a5bc61d

Please sign in to comment.