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: feed error if all entries created by web #39

Open Eliot00 opened 2 years ago

Eliot00 commented 2 years ago

Describe the bug

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

https://github.com/phodal/quake/blob/846a8ddce4aa459a6b9609c8aa7e328980eb2db6/src/cli/quake_action.rs#L82-L85

this will cause a runtime error:

https://github.com/phodal/quake/blob/846a8ddce4aa459a6b9609c8aa7e328980eb2db6/src/cli/quake_action.rs#L96-L104

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

phodal commented 2 years ago

哦,当时这么设计的原因是,担心找的是非 entry 目录。

应该遍历 defines 生成新的路径