Skip to content

Commit

Permalink
Merge pull request #189 from PnX-SI/hotfix1.5.0
Browse files Browse the repository at this point in the history
Hotfix1.5.0 > Develop
  • Loading branch information
camillemonchicourt authored Jul 31, 2023
2 parents eb4c14e + ca8b3c3 commit a8e7280
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.0
1.5.1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
revision = "4cac712a2ce6"
down_revision = "c2d02e345a06"
branch_labels = None
depends_on = None
depends_on = ("09a637f06b96",) # Geonature Notifications


CATEGORY_CODE = "EXPORT-DONE"
Expand Down
11 changes: 5 additions & 6 deletions backend/gn_module_export/utils_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,11 @@ def _test_export_needed(self):
raise ExportGenerationNotNeeded(self.export.id, self.skip_newer_than - age)

def get_export_url(self):
with current_app.test_request_context():
return url_for(
"media",
filename=f"{self.media_dir}/{self.file_name}",
_external=True,
)
return url_for(
"media",
filename=f"{self.media_dir}/{self.file_name}",
_external=True,
)

def get_full_path_file_name(self):
return str(Path(self.export_dir) / self.file_name)
Expand Down
2 changes: 1 addition & 1 deletion dependencies/Utils-Flask-SQLAlchemy

0 comments on commit a8e7280

Please sign in to comment.