From a66d3b3b6cd99b7ac372ac004c0500ae2331511c Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Tue, 12 Nov 2024 15:25:00 +0100 Subject: [PATCH 1/2] Include file extension in the export name --- app/controllers/exports_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/exports_controller.rb b/app/controllers/exports_controller.rb index 23af2622..cfa0d506 100644 --- a/app/controllers/exports_controller.rb +++ b/app/controllers/exports_controller.rb @@ -9,7 +9,7 @@ class ExportsController < ApplicationController end def create - export_name = "export_from_#{params[:start_at].to_date}_to_#{params[:end_at].to_date}" + export_name = "export_from_#{params[:start_at].to_date}_to_#{params[:end_at].to_date}.#{params[:file_format]}" export = current_user.exports.create(name: export_name, status: :created) ExportJob.perform_later(export.id, params[:start_at], params[:end_at], file_format: params[:file_format]) From 78ff67463db4d6eccb5cafdb57c5eb392e2c7a4c Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Tue, 12 Nov 2024 15:26:31 +0100 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ce8559c1..0ba6ce1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Admins can now provide custom password for new users and update passwords for existing users on the Users page. +### Fixed + +- Exported files will now always have an extension when downloaded. Previously, the extension was missing in case of GPX export. + # 0.16.3 - 2024-11-10 ### Fixed