diff --git a/app/models.py b/app/models.py index 5d92457d..ace9b8c9 100644 --- a/app/models.py +++ b/app/models.py @@ -617,7 +617,6 @@ user_role = db.Table('user_role', read_posts = db.Table('read_posts', db.Column('user_id', db.Integer, db.ForeignKey('user.id'), index=True), db.Column('read_post_id', db.Integer, db.ForeignKey('post.id'), index=True), - # db.PrimaryKeyConstraint('user_id', 'read_post_id') ) class User(UserMixin, db.Model): diff --git a/app/post/util.py b/app/post/util.py index bcf8e943..f904abb3 100644 --- a/app/post/util.py +++ b/app/post/util.py @@ -114,6 +114,3 @@ def url_needs_archive(url) -> bool: def generate_archive_link(url) -> bool: return 'https://archive.ph/' + url -# marks the post as read for a provided user -def mark_post_as_read(post_id: int, user_id: int): - pass \ No newline at end of file