Skip to content

Bug: feed error if all entries created by web #39

Open
@Eliot00

Description

@Eliot00

Describe the bug

If all entries are created by webapp, it wouldn't create entries.csv file,feed will pass it:

let table = entry.path().join(EntryPaths::entries_csv());
if !table.exists() {
continue;
}

this will cause a runtime error:

fs::write(temp_file, map)?;
meili_exec::feed_documents(&conf.search_url, &entry_type)?;
meili_exec::feed_settings(&conf.search_url, &define)?;
info!("done '{:}' feed", &entry_type);
}
fs::remove_file(temp_file)?;

remove temp file after loop, but it hasn't the tmp file beacuse all entry_type has not entries.csv

Steps to reproduce (please include code)

Environment

  • quake version:
  • Rust version:
  • OS: [e.g. OSX 10.13.4, Windows 10]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions