Skip to content

Commit

Permalink
EpubYaml - remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdanbobrowski committed Aug 24, 2024
1 parent 20d1486 commit 0a7b398
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions blog2epub/models/epubyaml.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from typing import List, Optional
from pydantic import BaseModel
from pydantic_yaml import to_yaml_str


class EpubYamlChapter(BaseModel):
Expand All @@ -12,20 +11,4 @@ class EpubYamlChapter(BaseModel):
class EpubYamlModel(BaseModel):
title: str
subtitle: str
cover: Optional[str] = None
chapters: List[EpubYamlChapter] = []


if __name__ == "__main__":
bf = EpubYamlModel(
title="test ebook",
subtitle="test ebook",
)
for x in range(0, 5):
bf.chapters.append(
EpubYamlChapter(
title=f"test chapter {x}",
url=f"http://example.com/chapter_{x}.html",
)
)
print(to_yaml_str(bf))

0 comments on commit 0a7b398

Please sign in to comment.