Reports
This commit is contained in:
parent
220d70b54d
commit
68199b5a1f
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue