nig
This commit is contained in:
parent
38d446be6c
commit
849d9a7f5c
1 changed files with 5 additions and 0 deletions
|
@ -225,6 +225,11 @@ class User(Base, Stndrd, Age_times):
|
|||
|
||||
comments = comments.options(contains_eager(Comment.post))
|
||||
|
||||
if not v:
|
||||
comments = comments.join(Comment.post).filter(Submission.club == False)
|
||||
elif v.admin_level < 3 and (v.coins < 750 or v.club_banned):
|
||||
comments = comments.join(Comment.post).filter(Submission.club == False)
|
||||
|
||||
now = int(time.time())
|
||||
if t == 'hour':
|
||||
cutoff = now - 3600
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue