forked from rDrama/rDrama
fix last commit
parent
9a56f661b8
commit
31e9764220
|
@ -317,8 +317,8 @@ class Comment(Base):
|
||||||
@lazy
|
@lazy
|
||||||
def emoji_award_emojis(self, v, OVER_18_EMOJIS):
|
def emoji_award_emojis(self, v, OVER_18_EMOJIS):
|
||||||
if g.show_over_18:
|
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"][: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" and x.note not in OVER_18_EMOJIS][:4]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
|
|
|
@ -265,8 +265,8 @@ class Post(Base):
|
||||||
@lazy
|
@lazy
|
||||||
def emoji_award_emojis(self, v, OVER_18_EMOJIS):
|
def emoji_award_emojis(self, v, OVER_18_EMOJIS):
|
||||||
if g.show_over_18:
|
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"][: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" and x.note not in OVER_18_EMOJIS][:4]
|
||||||
|
|
||||||
@lazy
|
@lazy
|
||||||
def realurl(self, v):
|
def realurl(self, v):
|
||||||
|
|
Loading…
Reference in New Issue