comment cleanup

This commit is contained in:
Alan Roberts 2024-09-27 22:35:26 -04:00
parent 48bae31d6c
commit 42df0fe458
2 changed files with 0 additions and 4 deletions

View file

@ -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):

View file

@ -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