sfd
This commit is contained in:
parent
bc4c9e523f
commit
9df131f40e
6 changed files with 5 additions and 5 deletions
Binary file not shown.
Before Width: | Height: | Size: 298 KiB After Width: | Height: | Size: 11 KiB |
|
@ -25,7 +25,7 @@ class Sub(Base):
|
|||
@lazy
|
||||
def sidebar_url(self):
|
||||
if self.sidebarurl: return SITE_FULL + self.sidebarurl
|
||||
return f'{SITE_FULL}/static/assets/images/{SITE_NAME}/sidebar.webp?a=1040'
|
||||
return f'{SITE_FULL}/static/assets/images/{SITE_NAME}/sidebar.webp?a=1041'
|
||||
|
||||
@property
|
||||
@lazy
|
||||
|
|
|
@ -320,7 +320,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, ccmode="false"
|
|||
|
||||
if sort == "hot":
|
||||
ti = int(time.time()) + 3600
|
||||
posts = posts.order_by(-1000000*(Submission.realupvotes + 1 + Submission.comment_count/5 + (func.length(Submission.body_html)-func.length(func.replace(Submission.body_html,'</a>',''))))/(func.power(((ti - Submission.created_utc)/1000), 1.23)))
|
||||
posts = posts.order_by(-1000000*(Submission.realupvotes + 1 + Submission.comment_count/5 + (func.length(Submission.body_html)-(func.length(func.replace(Submission.body_html,'</a>','')))/2))/(func.power(((ti - Submission.created_utc)/1000), 1.23)))
|
||||
elif sort == "new":
|
||||
posts = posts.order_by(Submission.created_utc.desc())
|
||||
elif sort == "old":
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{% if sub %}
|
||||
{% set image=sub.sidebar_url %}
|
||||
{% else %}
|
||||
{% set image='/static/assets/images/' + SITE_NAME + '/sidebar.webp?a=1040' %}
|
||||
{% set image='/static/assets/images/' + SITE_NAME + '/sidebar.webp?a=1041' %}
|
||||
{% endif %}
|
||||
|
||||
<img alt="sidebar image" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{image}}')" loading="lazy" src="{{image}}" width=100%>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div class="col sidebar text-left d-none d-lg-block pt-3 pb-5 bg-white" style="max-width:300px">
|
||||
<img role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('/static/assets/images/PCM/sidebar.webp?a=1040" loading="lazy" src="/static/assets/images/PCM/sidebar.webp?a=1040" width=100%>
|
||||
<img role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('/static/assets/images/PCM/sidebar.webp?a=1041" loading="lazy" src="/static/assets/images/PCM/sidebar.webp?a=1041" width=100%>
|
||||
|
||||
|
||||
<a class="btn btn-primary btn-block mt-4" href="https://ip2.network">STREAM LIST</a>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{% if sub %}
|
||||
{% set image=sub.sidebar_url %}
|
||||
{% else %}
|
||||
{% set image='/static/assets/images/' + SITE_NAME + '/sidebar.webp?a=1040' %}
|
||||
{% set image='/static/assets/images/' + SITE_NAME + '/sidebar.webp?a=1041' %}
|
||||
{% endif %}
|
||||
|
||||
<img alt="sidebar image" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{image}}')" loading="lazy" src="{{image}}" width=100%>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue