From e2082b48d3e624cf9ddf666eb0f63fa2e0a1c071 Mon Sep 17 00:00:00 2001 From: Untone Date: Sat, 4 Nov 2023 12:43:08 +0300 Subject: [PATCH] orm-fix --- orm/shout.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/orm/shout.py b/orm/shout.py index 0ea91bb0..e4882507 100644 --- a/orm/shout.py +++ b/orm/shout.py @@ -85,10 +85,6 @@ class Shout(Base): communities = relationship(lambda: Community, secondary=ShoutCommunity.__tablename__) reactions = relationship(lambda: Reaction) - views_old = Column(Integer, default=0) - views_ackee = Column(Integer, default=0) - views = column_property(views_old + views_ackee) - visibility = Column(Enum(ShoutVisibility), default=ShoutVisibility.AUTHORS) lang = Column(String, nullable=False, default="ru", comment="Language")