phodal / quake

Quake is a knowledge management meta-framework for geeks. Use meta-data + Transflow to CRUD data, Git + markdown to management content, Web Component for frontend-custom. Quake 是面向极客的知识管理元框架。
MIT License
441 stars 39 forks source link

Bug: entry_watcher ParseIntError #37

Closed Eliot00 closed 2 years ago

Eliot00 commented 2 years ago

Describe the bug

WebApp create a new entry, server will get a error log: ERROR quake::helper::entry_watcher: watch error: ParseIntError { kind: InvalidDigit }, and action todo.show get a invalid date.

图片

Steps to reproduce (please include code)

  1. create a new foler and cd
  2. run path of target/debug/quake init -d
  3. run meilisearch
  4. run quake server -w
  5. open webapp and create a new entry by action todo.add: hello
  6. click save button

Environment

phodal commented 2 years ago

For invalid Date.

when feed document in entry_watcher.rs, the date not format to search engine date:

let (typ, file) = entry_file_by_path(&path)?;
feed_document(search_url, &typ, &file)?;

need align to Entrysets::file_to_json