fix 500 errors

master
Aevann1 2022-07-13 15:11:37 +02:00
parent 2da7bea62b
commit df3df30840
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
<div class="srd"> <div class="srd">
{% include "journoid_banner.html" %} {% include "journoid_banner.html" %}
</div> </div>
{% elif g.loggedout_counter+g.loggedin_counter > 100 and not err %} {% elif g.loggedin_counter and g.loggedin_counter+g.loggedout_counter > 100 and not err %}
<div class="srd"> <div class="srd">
<img src="/e/marseylowpoly.webp" height=18 width=28> <img src="/e/marseylowpoly.webp" height=18 width=28>

View File

@ -10,7 +10,7 @@
<img class="mb-4" alt="sidebar image" role="button" onclick="expandDesktopImage()" loading="lazy" src="{{image}}" width=100%> <img class="mb-4" alt="sidebar image" role="button" onclick="expandDesktopImage()" loading="lazy" src="{{image}}" width=100%>
</a> </a>
{% if g.loggedout_counter+g.loggedin_counter > 100 %} {% if g.loggedin_counter and g.loggedin_counter+g.loggedout_counter > 100 %}
<p class="mt-1 ml-2 mb-4 text-center"> <p class="mt-1 ml-2 mb-4 text-center">
<span id="sidebar--counter--total">{{ g.loggedin_counter + g.loggedout_counter }}</span> <span id="sidebar--counter--total">{{ g.loggedin_counter + g.loggedout_counter }}</span>
<span id="sidebar--counter--flavor"> people here now</span> <span id="sidebar--counter--flavor"> people here now</span>