Revert "Revert "store views on the shouts table, remove the viewed table""

This commit is contained in:
Igor Lobanov
2023-08-05 00:21:54 +02:00
committed by GitHub
parent 6e9699513a
commit 9d94464614
5 changed files with 29 additions and 99 deletions

View File

@@ -6,7 +6,6 @@ from orm.reaction import Reaction
from orm.shout import Shout
from orm.topic import Topic, TopicFollower
from orm.user import User, UserRating
from orm.viewed import ViewedEntry
# NOTE: keep orm module isolated
@@ -22,7 +21,6 @@ __all__ = [
"Notification",
"Reaction",
"UserRating",
"ViewedEntry"
]
@@ -35,5 +33,4 @@ def init_tables():
Role.init_table()
UserRating.init_table()
Shout.init_table()
ViewedEntry.init_table()
print("[orm] tables initialized")