forked from rDrama/rDrama
grammar
parent
b86f6fa1f7
commit
81e8d09cd1
|
@ -388,7 +388,7 @@ class User(Base):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def is_votes_real(self):
|
def has_real_votes(self):
|
||||||
if self.patron: return True
|
if self.patron: return True
|
||||||
if self.is_permabanned or self.shadowbanned: return False
|
if self.is_permabanned or self.shadowbanned: return False
|
||||||
if self.chud: return False
|
if self.chud: return False
|
||||||
|
|
|
@ -76,7 +76,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
|
||||||
elif new != 0:
|
elif new != 0:
|
||||||
imlazy = 3
|
imlazy = 3
|
||||||
|
|
||||||
real = new == -1 or (not alt and v.is_votes_real)
|
real = new == -1 or (not alt and v.has_real_votes)
|
||||||
vote = None
|
vote = None
|
||||||
if vote_cls == Vote:
|
if vote_cls == Vote:
|
||||||
vote = Vote(user_id=v.id,
|
vote = Vote(user_id=v.id,
|
||||||
|
|
Loading…
Reference in New Issue