Skip to content

Commit

Permalink
Merge pull request #292 from hotosm/bump/snapshot_fix
Browse files Browse the repository at this point in the history
Fix error with param type on S3FileTransfer.upload
  • Loading branch information
kshitijrajsharma authored Feb 4, 2025
2 parents 144b898 + 364e3da commit c15035b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ Pipfile.lock
#backend
backend/data
backend/.env

# OS files
.DS_Store

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.5.13 (2025-02-03)

### Fix

- **S3FileTransfer.upload**: fix upload when file_path is not a string

## 1.5.12 (2025-01-29)

### Refactor
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "raw-data-api"
version = "1.5.12"
version = "1.5.13"
description = "Set of high-performant APIs for transforming and exporting OpenStreetMap (OSM) data in different GIS file formats."
readme = "README.md"
authors = [
Expand Down
Binary file removed src/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ def upload(self, file_path, file_name, file_suffix=None):
start_time = time.time()

try:
if file_path[-5:] == ".html":
if type(file_path) == str and file_path[-5:] == ".html":
self.s_3.upload_file(
str(file_path),
BUCKET_NAME,
Expand Down

0 comments on commit c15035b

Please sign in to comment.