From 81ed2a77b3b9c6016e86b4cef31b2d7df3c13c08 Mon Sep 17 00:00:00 2001 From: Niels Date: Tue, 10 Sep 2024 21:19:45 +0200 Subject: [PATCH] Fix which file is skipped Signed-off-by: Niels --- lib/Command/Classify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Command/Classify.php b/lib/Command/Classify.php index 8d1ca483..5ee62625 100644 --- a/lib/Command/Classify.php +++ b/lib/Command/Classify.php @@ -111,6 +111,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int foreach ($this->storageService->getFilesInMount($mount['storage_id'], $mount['override_root'], $models, $lastFileId) as $file) { $i++; // if retry flag is set, skip tagged files + $lastFileId = $file['fileid']; if ($input->getOption('retry')) { $fileTags = $this->tagManager->getTagsForFiles([$lastFileId]); // check if processed tag is already in the tags @@ -118,7 +119,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int continue; } } - $lastFileId = $file['fileid']; $queueFile = new QueueFile(); $queueFile->setStorageId($mount['storage_id']); $queueFile->setRootId($mount['root_id']);