fds
This commit is contained in:
parent
1d230517f0
commit
b247c2daeb
4 changed files with 8 additions and 10 deletions
|
@ -58,7 +58,7 @@ def searchposts(v):
|
|||
|
||||
|
||||
|
||||
posts = g.db.query(Submission).options(lazyload('*'))
|
||||
posts = g.db.query(Submission.id).options(lazyload('*'))
|
||||
|
||||
if not (v and v.admin_level == 6): posts = posts.filter(Submission.private == False)
|
||||
|
||||
|
@ -153,7 +153,7 @@ def searchposts(v):
|
|||
|
||||
total = len(posts)
|
||||
|
||||
ids = [x.id for x in posts]
|
||||
ids = [x[0] for x in posts]
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -139,7 +139,7 @@
|
|||
{% if last_view_utc and c.created_utc > last_view_utc and not (v and v.id==c.author_id) and (not v or v.highlightcomments) %}<i style="color:red !important" class="text-admin fas fa-circle" data-toggle="tooltip" data-placement="bottom" title="Unread"></i>{% endif %}
|
||||
|
||||
{% if c.awards %}
|
||||
{% for a in c.awards[:5] %}
|
||||
{% for a in c.awards %}
|
||||
<i class="{{a.class_list}} px-1" data-toggle="tooltip" data-placement="bottom" title="{{a.title}} Award given by @{{a.user.username}}"></i>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
|
|
@ -213,13 +213,12 @@
|
|||
{% if p.award_count("shit") %}
|
||||
<script src="/assets/js/bug-min.js" type="text/javascript"></script>
|
||||
{% set minbugs = 10*p.award_count("shit") if p.award_count("shit") <= 5 else 50 %}
|
||||
{% set maxbugs = 20*p.award_count("shit") if p.award_count("shit") <= 5 else 100 %}
|
||||
<script type="text/javascript">
|
||||
new BugController({
|
||||
imageSprite: "/assets/images/fly-sprite.webp",
|
||||
canDie: false,
|
||||
minBugs: {{minbugs}},
|
||||
maxBugs: {{maxbugs}},
|
||||
maxBugs: {{minbugs}},
|
||||
mouseOver: "multiply"
|
||||
});
|
||||
</script>
|
||||
|
@ -229,13 +228,12 @@
|
|||
{% if p.award_count("fireflies") %}
|
||||
<script src="/assets/js/fireflies.js" type="text/javascript"></script>
|
||||
{% set minbugs = 10*p.award_count("fireflies") if p.award_count("fireflies") <= 5 else 50 %}
|
||||
{% set maxbugs = 20*p.award_count("fireflies") if p.award_count("fireflies") <= 5 else 100 %}
|
||||
<script type="text/javascript">
|
||||
new BugController({
|
||||
imageSprite: "/assets/images/fireflies.webp",
|
||||
canDie: false,
|
||||
minBugs: {{minbugs}},
|
||||
maxBugs: {{maxbugs}},
|
||||
maxBugs: {{minbugs}},
|
||||
mouseOver: "multiply"
|
||||
});
|
||||
</script>
|
||||
|
@ -262,7 +260,7 @@
|
|||
{% endif %}
|
||||
|
||||
{% if p.awards %}
|
||||
{% for a in p.awards[:5] %}
|
||||
{% for a in p.awards %}
|
||||
<i class="{{a.class_list}} px-1" data-toggle="tooltip" data-placement="bottom" title="{{a.title}} Award given by @{{a.user.username}}"></i>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
|
|
@ -118,8 +118,8 @@
|
|||
{% endif %}
|
||||
|
||||
{% if p.awards %}
|
||||
{% for a in p.awards[:5] %}
|
||||
<i class="{{a.class_list}} px-1" data-toggle="tooltip" data-placement="bottom" title="{{a.title}} Award given by @{{a.user.username}}"></i>
|
||||
{% for a in p.awards %}
|
||||
<i class="{{a.class_list}} px-1" data-toggle="tooltip" data-placement="bottom" title="{{a.title}} Award given by @{{a.user.username}}"></i>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if v and v.admin_level==6 and p.author.shadowbanned %}<i class="fas fa-user-times text-admin" data-toggle="tooltip" data-placement="bottom" title="Shadowbanned user"></i>{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue