mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 12:26:15 +02:00
correct mistake in stock controller
This commit is contained in:
parent
75367598ea
commit
75a3c6c62e
|
|
@ -51,15 +51,16 @@ class StockController extends BaseController
|
|||
|
||||
public function Consume(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
{
|
||||
$fp = fopen('/www/data/sql.log', 'a');
|
||||
fwrite($fp, "???executing consume stock");
|
||||
$time_start = microtime(true);
|
||||
#$fp = fopen('/www/data/sql.log', 'a');
|
||||
#fwrite($fp, "???executing consume stock");
|
||||
#$time_start = microtime(true);
|
||||
$result = $this->AppContainer->view->render($response, 'consume', [
|
||||
'products' => $this->Database->products()->orderBy('name'),
|
||||
'recipes' => $this->Database->recipes()->orderBy('name')
|
||||
]);
|
||||
fwrite($fp, "???Total execution time in seconds: " . round((microtime(true) - $time_start),6) . "\n");
|
||||
fclose($fp);
|
||||
#fwrite($fp, "???Total execution time in seconds: " . round((microtime(true) - $time_start),6) . "\n");
|
||||
#fclose($fp);
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function Inventory(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user