Commit 7f3f137b authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Task: Don't spwan task for unparsed external files

parent 30841665
...@@ -307,7 +307,8 @@ void Task::recoverUnscannedFiles( MediaLibraryPtr ml ) ...@@ -307,7 +307,8 @@ void Task::recoverUnscannedFiles( MediaLibraryPtr ml )
"(file_id, parent_folder_id)" "(file_id, parent_folder_id)"
" SELECT id_file, folder_id FROM " + policy::FileTable::Name + " SELECT id_file, folder_id FROM " + policy::FileTable::Name +
" f LEFT JOIN " + policy::TaskTable::Name + " t" " f LEFT JOIN " + policy::TaskTable::Name + " t"
" ON t.file_id = f.id_file WHERE t.file_id IS NULL"; " ON t.file_id = f.id_file WHERE t.file_id IS NULL"
" AND f.folder_id IS NOT NULL";
sqlite::Tools::executeInsert( ml->getConn(), req ); sqlite::Tools::executeInsert( ml->getConn(), req );
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment