mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-15 16:32:16 +00:00
Merge pull request #2693 from colegleason/csv
Set filename when exporting challenge to CSV
This commit is contained in:
commit
b01d08ccfe
1 changed files with 1 additions and 0 deletions
|
|
@ -98,6 +98,7 @@ api.csv = function(req, res) {
|
|||
})
|
||||
output.push(uData);
|
||||
});
|
||||
res.header('Content-disposition', 'attachment; filename='+cid+'.csv');
|
||||
res.csv(output);
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue