Commit 3a1d6a8f authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Task: Rename fetchUnparsed -> fetchUncompleted

Which is more appropriate for what this function does
parent b247a37a
......@@ -112,7 +112,7 @@ void Parser::restore()
if ( m_services.empty() == true )
return;
auto tasks = parser::Task::fetchUnparsed( m_ml );
auto tasks = parser::Task::fetchUncompleted( m_ml );
LOG_INFO( "Resuming parsing on ", tasks.size(), " tasks" );
for ( auto& t : tasks )
{
......
......@@ -245,7 +245,7 @@ void Task::resetParsing( MediaLibraryPtr ml )
sqlite::Tools::executeUpdate( ml->getConn(), req, parser::Task::ParserStep::None );
}
std::vector<std::shared_ptr<Task>> Task::fetchUnparsed( MediaLibraryPtr ml )
std::vector<std::shared_ptr<Task>> Task::fetchUncompleted( MediaLibraryPtr ml )
{
static const std::string req = "SELECT * FROM " + policy::TaskTable::Name + " t"
" LEFT JOIN " + policy::FileTable::Name + " f ON f.id_file = t.file_id"
......
......@@ -140,7 +140,7 @@ public:
static void createTable( sqlite::Connection* dbConnection );
static void resetRetryCount( MediaLibraryPtr ml );
static void resetParsing( MediaLibraryPtr ml );
static std::vector<std::shared_ptr<Task>> fetchUnparsed( MediaLibraryPtr ml );
static std::vector<std::shared_ptr<Task>> fetchUncompleted( MediaLibraryPtr ml );
static std::shared_ptr<Task> create( MediaLibraryPtr ml, std::shared_ptr<fs::IFile> fileFs,
std::shared_ptr<Folder> parentFolder,
std::shared_ptr<fs::IDirectory> parentFolderFs,
......
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