From 68199b5a1f9d0cd800ca8f18d405b9601a38d0ef Mon Sep 17 00:00:00 2001 From: Kekskurse Date: Thu, 21 Jan 2021 15:39:20 +0100 Subject: [PATCH] Reports --- app/Http/Controllers/ReportController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/ReportController.php b/app/Http/Controllers/ReportController.php index dc6cf73..7077ce6 100644 --- a/app/Http/Controllers/ReportController.php +++ b/app/Http/Controllers/ReportController.php @@ -34,9 +34,9 @@ class ReportController extends BaseController public function spaceReport($year, $month) { $reportData = DB::select("SELECT * FROM storage WHERE tenant = ".(int)session("current_tenant_id")." AND `year` = ".(int)$year." AND `month` = ".(int)$month.";"); - $report = "year;month;day;hour;size\n"; + $report = "year;month;day;hour;gallery;size\n"; foreach ($reportData as $reportLine) { - $report .= $reportLine->year.";".$reportLine->month.";".$reportLine->day.";".$reportLine->hour.";".$reportLine->size."\n"; + $report .= $reportLine->year.";".$reportLine->month.";".$reportLine->day.";".$reportLine->hour.";".$reportLine->gallery.";"$reportLine->size."\n"; } $res = new Response();