diff --git a/src/infra/publication.py b/src/infra/publication.py index d42dfc1..b07df6d 100644 --- a/src/infra/publication.py +++ b/src/infra/publication.py @@ -12,7 +12,6 @@ class PublicationEntryModel(Base): id: Mapped[int] = mapped_column(primary_key=True) text: Mapped[str] = mapped_column(Text()) - html: Mapped[str | None] = mapped_column(Text()) sequences: Mapped[list['PublicationSequenceModel']] = relationship(back_populates='entry') @@ -56,7 +55,7 @@ class PublicationModel(Base): def model_to_entry(db_pub_entry: PublicationEntryModel) -> Entry: - return Entry(id=db_pub_entry.id, text=db_pub_entry.text, html=db_pub_entry.html) + return Entry(id=db_pub_entry.id, text=db_pub_entry.text) def model_to_sequence(db_pub_position: PublicationSequenceModel) -> Sequence: diff --git a/src/services/publications/data.py b/src/services/publications/data.py index 64ec929..7d2bf59 100644 --- a/src/services/publications/data.py +++ b/src/services/publications/data.py @@ -6,7 +6,6 @@ from dataclasses import dataclass, field class Entry: id: int text: str - html: str | None = None @dataclass