mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Merge pull request #392 from Freika/fix/export-gpx-file-extension
Fix missing file extension in gpx export files
This commit is contained in:
commit
9b97aa4f52
2 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Reference in a new issue