This commit is contained in:
Kekskurse 2021-01-21 15:39:20 +01:00
parent 220d70b54d
commit 68199b5a1f

View file

@ -34,9 +34,9 @@ class ReportController extends BaseController
public function spaceReport($year, $month) { 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.";"); $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) { 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(); $res = new Response();