mirror of
https://github.com/getredash/redash.git
synced 2025-12-23 03:13:08 -05:00
Allow downloading CSV by query id and not just query_result id.
This commit is contained in:
@@ -139,7 +139,7 @@
|
||||
if ($scope.queryResult.getId() == null) {
|
||||
$scope.dataUri = "";
|
||||
} else {
|
||||
$scope.dataUri = '/api/query_results/' + $scope.queryResult.getId() + '.csv';
|
||||
$scope.dataUri = '/api/queries/' + $scope.query.id + '/results/' + $scope.queryResult.getId() + '.csv';
|
||||
$scope.dataFilename = $scope.query.name.replace(" ", "_") + moment($scope.queryResult.getUpdatedAt()).format("_YYYY_MM_DD") + ".csv";
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user