1
0
mirror of https://koodu.h-i.works/projects/thebadspace synced 2025-08-09 17:25:17 -05:00

csv export missing file extension

small patch to add missing file extension to the csv exports. oops.
This commit is contained in:
ro
2025-07-28 16:44:36 -06:00
parent d310cf4fb9
commit 9fa7fc6554

View File

@ -30,10 +30,13 @@ class ExportController extends Controller
}
array_push($list, ["heatRating" => $rating, "ratingCount" => $count]);
}
return view('front.exports', [
'title' => "Exports",
'list' => $list
]);
return view(
'front.exports',
[
'title' => "Exports",
'list' => $list
]
);
}
//
@ -77,7 +80,7 @@ class ExportController extends Controller
}
header('Content-Type: text/csv');
header('Content-Disposition: attachment; filename=' . $type . "-" . $percent);
header('Content-Disposition: attachment; filename=' . $type . "-" . $percent . ".csv");
echo implode(',', $columns) . PHP_EOL;
foreach ($list as $item) {