From 31e9764220ef55e6de5af025174c4623f0451efc Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 4 Oct 2023 16:58:16 +0300 Subject: [PATCH] fix last commit --- files/classes/comment.py | 4 ++-- files/classes/post.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index 9d2b05ba36..a9b3ec76af 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -317,8 +317,8 @@ class Comment(Base): @lazy def emoji_award_emojis(self, v, OVER_18_EMOJIS): if g.show_over_18: - return [x.note for x in self.awards if x.kind == "emoji"][-4:] - return [x.note for x in self.awards if x.kind == "emoji" and x.note not in OVER_18_EMOJIS][-4:] + return [x.note for x in self.awards if x.kind == "emoji"][:4] + return [x.note for x in self.awards if x.kind == "emoji" and x.note not in OVER_18_EMOJIS][:4] @property @lazy diff --git a/files/classes/post.py b/files/classes/post.py index 67dff8ba25..7f158c55dd 100644 --- a/files/classes/post.py +++ b/files/classes/post.py @@ -265,8 +265,8 @@ class Post(Base): @lazy def emoji_award_emojis(self, v, OVER_18_EMOJIS): if g.show_over_18: - return [x.note for x in self.awards if x.kind == "emoji"][-4:] - return [x.note for x in self.awards if x.kind == "emoji" and x.note not in OVER_18_EMOJIS][-4:] + return [x.note for x in self.awards if x.kind == "emoji"][:4] + return [x.note for x in self.awards if x.kind == "emoji" and x.note not in OVER_18_EMOJIS][:4] @lazy def realurl(self, v):