diff --git a/VERSION b/VERSION index bc80560..26ca594 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.0 +1.5.1 diff --git a/backend/gn_module_export/migrations/4cac712a2ce6_create_export_notifications.py b/backend/gn_module_export/migrations/4cac712a2ce6_create_export_notifications.py index 3d488b1..79d7c8c 100644 --- a/backend/gn_module_export/migrations/4cac712a2ce6_create_export_notifications.py +++ b/backend/gn_module_export/migrations/4cac712a2ce6_create_export_notifications.py @@ -13,7 +13,7 @@ revision = "4cac712a2ce6" down_revision = "c2d02e345a06" branch_labels = None -depends_on = None +depends_on = ("09a637f06b96",) # Geonature Notifications CATEGORY_CODE = "EXPORT-DONE" diff --git a/backend/gn_module_export/utils_export.py b/backend/gn_module_export/utils_export.py index d476f65..aaeec09 100644 --- a/backend/gn_module_export/utils_export.py +++ b/backend/gn_module_export/utils_export.py @@ -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) diff --git a/dependencies/Utils-Flask-SQLAlchemy b/dependencies/Utils-Flask-SQLAlchemy index 1c144eb..71fbdbe 160000 --- a/dependencies/Utils-Flask-SQLAlchemy +++ b/dependencies/Utils-Flask-SQLAlchemy @@ -1 +1 @@ -Subproject commit 1c144eb6b8884c6db746bfb01476ac819c5ecf35 +Subproject commit 71fbdbefc80d1efc0287a4887efa03a1a2131f15