Skip to content

Commit

Permalink
Updated anime list filename format
Browse files Browse the repository at this point in the history
  • Loading branch information
ipkpjersi committed Aug 13, 2024
1 parent 2a396b0 commit 3c0c4af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Controllers/AnimeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -833,11 +833,12 @@ public function exportAnimeList(Request $request, AnimeListExportService $export
]);

$userId = Auth::id();
$username = Auth::user()->username;
$result = $exporter->export($exportType, $userId);

// Generate filename with date
$currentDateTime = Carbon::now()->format('Y-m-d_H-i-s');
$fileNameBase = "AnimeList_{$currentDateTime}";
$fileNameBase = "AnimeList_{$username}_{$currentDateTime}";

if ($exportType === 'myanimelist') {
$fileName = "{$fileNameBase}.xml";
Expand Down

0 comments on commit 3c0c4af

Please sign in to comment.