From 1e9f9564dc696b579cd63f99be25c988e20d6e6f Mon Sep 17 00:00:00 2001 From: justcool393 Date: Tue, 1 Nov 2022 12:19:21 -0500 Subject: [PATCH] commentsaverelationship --- files/routes/users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/users.py b/files/routes/users.py index 0cc664c54..0a7ce9416 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -919,11 +919,11 @@ def user_profile_name(username): def get_saves_and_subscribes(v, template, relationship_cls, page:int, standalone=False): PAGE_SIZE = 25 - if relationship_cls in (SaveRelationship, Subscription): + if relationship_cls in [SaveRelationship, Subscription]: query = relationship_cls.submission_id join = relationship_cls.post cls = Submission - elif relationship_cls in (CommentSaveRelationship): + elif relationship_cls is CommentSaveRelationship: query = relationship_cls.comment_id join = relationship_cls.comment cls = Comment