From 81bad03ebd7100e88dde1cc3bb61e17f4363002e Mon Sep 17 00:00:00 2001 From: Campbell Alden Date: Sat, 15 Aug 2026 00:13:15 +0900 Subject: [PATCH] Remove HTML from stored data for entries HTML will be rendered for entries derived from the plain text (at least, I think). --- src/infra/publication.py | 3 +-- src/services/publications/data.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) 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