Merge branch 'feature/319-csv-export' into develop
This commit is contained in:
commit
1671070d0c
@ -90,6 +90,9 @@ class SettingController extends Controller
|
|||||||
|
|
||||||
$filename = tempnam(sys_get_temp_dir(), 'tissue_export_tmp_');
|
$filename = tempnam(sys_get_temp_dir(), 'tissue_export_tmp_');
|
||||||
try {
|
try {
|
||||||
|
// 気休め
|
||||||
|
set_time_limit(0);
|
||||||
|
|
||||||
$exporter = new CheckinCsvExporter(Auth::user(), $filename, $charsets[$validated['charset']]);
|
$exporter = new CheckinCsvExporter(Auth::user(), $filename, $charsets[$validated['charset']]);
|
||||||
$exporter->execute();
|
$exporter->execute();
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
|
@ -46,7 +46,7 @@ class CheckinCsvExporter
|
|||||||
$ejaculation->note,
|
$ejaculation->note,
|
||||||
$ejaculation->link,
|
$ejaculation->link,
|
||||||
];
|
];
|
||||||
foreach ($ejaculation->tags as $tag) {
|
foreach ($ejaculation->tags->take(32) as $tag) {
|
||||||
$record[] = $tag->name;
|
$record[] = $tag->name;
|
||||||
}
|
}
|
||||||
$csv->insertOne($record);
|
$csv->insertOne($record);
|
||||||
|
Loading…
Reference in New Issue
Block a user