Skip to content

Commit

Permalink
Fix which file is skipped
Browse files Browse the repository at this point in the history
Signed-off-by: Niels <[email protected]>
  • Loading branch information
nielstron committed Sep 10, 2024
1 parent 3e66a3e commit 81ed2a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Command/Classify.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@ 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
if (in_array($processedTag, $fileTags[$lastFileId])) {
continue;
}
}
$lastFileId = $file['fileid'];
$queueFile = new QueueFile();
$queueFile->setStorageId($mount['storage_id']);
$queueFile->setRootId($mount['root_id']);
Expand Down

0 comments on commit 81ed2a7

Please sign in to comment.