feat: add EPUB export functionality for projects#58
feat: add EPUB export functionality for projects#58StableLlama wants to merge 1 commit intoStableLlamaAI:developfrom
Conversation
|
|
||
| b_dir = active / "books" / bid | ||
| chapters_dir = b_dir / "chapters" | ||
| if not chapters_dir.exists(): |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
| continue | ||
|
|
||
| book_items = [] | ||
| for p in chapters_dir.glob("*.txt"): |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
|
|
||
| # Novel | ||
| chapters_dir = active / "chapters" | ||
| if not chapters_dir.exists() or not chapters_dir.is_dir(): |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
|
|
||
| # Novel | ||
| chapters_dir = active / "chapters" | ||
| if not chapters_dir.exists() or not chapters_dir.is_dir(): |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
| if not chapters_dir.exists() or not chapters_dir.is_dir(): | ||
| return [] | ||
| items_novel = [] | ||
| for p in chapters_dir.glob("*.txt"): |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
| else: | ||
| path = get_active_project_dir() | ||
|
|
||
| if not path or not path.exists(): |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
Description
add EPUB export functionality for projects
Fixes # (issue)
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
pytest)npm run test)Checklist: