Merge branch 'feature/319-csv-export' into develop

This commit is contained in:
shibafu 2020-05-20 21:56:37 +09:00
commit 1671070d0c
2 changed files with 4 additions and 1 deletions

View File

@ -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) {

View File

@ -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);