diff --git a/db.py b/db.py index 1334982f..92b174e3 100644 --- a/db.py +++ b/db.py @@ -673,6 +673,7 @@ class Diario(Base): saver = relationship("Telegram", foreign_keys=saver_id, backref="diario_saves", lazy="joined") author_id = Column(Integer, ForeignKey("telegram.telegram_id")) author = relationship("Telegram", foreign_keys=author_id, backref="diario_authored", lazy="joined") + spoiler = Column(Boolean, default=False) text = Column(String) def __repr__(self): diff --git a/templates/components/diarioentry.html b/templates/components/diarioentry.html index 5b3e999b..0523169a 100644 --- a/templates/components/diarioentry.html +++ b/templates/components/diarioentry.html @@ -1,4 +1,4 @@ -
+{{ entry.text }}