Skip to content

Commit

Permalink
Fix basic report for empty volume in a better way
Browse files Browse the repository at this point in the history
  • Loading branch information
mzur committed Jan 20, 2025
1 parent 4c59897 commit 0ed5a6f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,11 @@ protected function query()
* @param string $title The title to put in the first row of the CSV
* @return CsvFile
*/
protected function createCsv($labels, $title = '')
protected function createCsv($labels, $title = "\n")
{
$csv = CsvFile::makeTmp();
// The title must not be empty as the Python
// script expects one line as title.
$csv->put($title);

foreach ($labels as $label) {
Expand Down

0 comments on commit 0ed5a6f

Please sign in to comment.