forked from rDrama/rDrama
fddf
parent
9b91408eab
commit
fce10b47b1
|
@ -108,7 +108,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
|
||||||
|
|
||||||
if not (v and v.changelogsub):
|
if not (v and v.changelogsub):
|
||||||
posts=posts.join(Submission.submission_aux)
|
posts=posts.join(Submission.submission_aux)
|
||||||
posts=posts.filter(not_(SubmissionAux.title.ilike(f'%[changelog]%')))
|
posts=posts.filter(not_(SubmissionAux.title.ilike(f'[changelog]%')))
|
||||||
|
|
||||||
if v and filter_words:
|
if v and filter_words:
|
||||||
for word in filter_words:
|
for word in filter_words:
|
||||||
|
@ -244,7 +244,7 @@ def changeloglist(v=None, sort="new", page=1 ,t="all", **kwargs):
|
||||||
)
|
)
|
||||||
|
|
||||||
posts=posts.join(Submission.submission_aux).join(Submission.author)
|
posts=posts.join(Submission.submission_aux).join(Submission.author)
|
||||||
posts=posts.filter(SubmissionAux.title.ilike(f'%changelog%', User.admin_level == 6))
|
posts=posts.filter(SubmissionAux.title.ilike(f'_changelog%', User.admin_level == 6))
|
||||||
|
|
||||||
if t != 'all':
|
if t != 'all':
|
||||||
cutoff = 0
|
cutoff = 0
|
||||||
|
|
Loading…
Reference in New Issue