Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bad f-string when downloading file #600

Merged
merged 3 commits into from
Aug 26, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion backend/modules/browser/browser_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ def get(self, dataset: str, datatype: str, item: str, # pylint: disable=too-man
"""
# ctrl.filterVariantsBy~ctrl.filterIncludeNonPass
dataset, ds_version = utils.parse_dataset(dataset, ds_version)
filename = f'{dataset}_{datatype}_{item}.csv'
self.set_header('Content-Type', 'text/csv')
self.set_header(f'content-Disposition',
'attachement; filename={f"{dataset}_{datatype}_{item}.csv"}')
f'attachement; filename={filename}')

data = utils.get_variant_list(dataset, datatype, item, ds_version)
# filter variants based on what is shown
Expand Down