Skip to content

Commit

Permalink
Increase time limit for execution of items export
Browse files Browse the repository at this point in the history
  • Loading branch information
ngm committed Feb 20, 2023
1 parent 0589ab7 commit 1a7e9d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Http/Controllers/ExportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public function devices(Request $request, $idevents = NULL, $idgroups = NULL)
fputcsv($file, $columns);

foreach ($all_devices as $device) {
set_time_limit(60);
if (User::userCanSeeEvent($me, $event)) {
$wasteImpact = 0;
$co2Diverted = 0;
Expand Down Expand Up @@ -143,6 +144,7 @@ public function devices(Request $request, $idevents = NULL, $idgroups = NULL)
$party = null;

foreach ($all_devices as $device) {
set_time_limit(60);
$party = !$party || $party->idevents != $device->event ? Party::findOrFail($device->event) : $party;

if (User::userCanSeeEvent($me, $party)) {
Expand Down

0 comments on commit 1a7e9d2

Please sign in to comment.