From 5668296e7d7ebc867113a879e768726697c5fd3b Mon Sep 17 00:00:00 2001 From: shibafu Date: Wed, 20 May 2020 21:28:46 +0900 Subject: [PATCH 1/2] =?UTF-8?q?add=20=E6=B0=97=E4=BC=91=E3=82=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/SettingController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Http/Controllers/SettingController.php b/app/Http/Controllers/SettingController.php index 7ffcb25..c1e8283 100644 --- a/app/Http/Controllers/SettingController.php +++ b/app/Http/Controllers/SettingController.php @@ -90,6 +90,9 @@ class SettingController extends Controller $filename = tempnam(sys_get_temp_dir(), 'tissue_export_tmp_'); try { + // 気休め + set_time_limit(0); + $exporter = new CheckinCsvExporter(Auth::user(), $filename, $charsets[$validated['charset']]); $exporter->execute(); } catch (\Throwable $e) { From 988ad9d992a545ab9bc46ae357ebcf819980a736 Mon Sep 17 00:00:00 2001 From: shibafu Date: Wed, 20 May 2020 21:42:22 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=E3=82=BF=E3=82=B0=E5=87=BA=E5=8A=9B?= =?UTF-8?q?=E6=95=B0=E3=81=AE=E4=B8=8A=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/CheckinCsvExporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/CheckinCsvExporter.php b/app/Services/CheckinCsvExporter.php index ac38b56..7fe8dbf 100644 --- a/app/Services/CheckinCsvExporter.php +++ b/app/Services/CheckinCsvExporter.php @@ -46,7 +46,7 @@ class CheckinCsvExporter $ejaculation->note, $ejaculation->link, ]; - foreach ($ejaculation->tags as $tag) { + foreach ($ejaculation->tags->take(32) as $tag) { $record[] = $tag->name; } $csv->insertOne($record);