This commit is contained in:
krateng 2023-10-28 12:00:49 +02:00
parent 4969d9c035
commit abc48a04c8
5 changed files with 30 additions and 0 deletions

View File

@ -43,6 +43,7 @@ if malojaconfig['USE_GLOBAL_CACHE']:
conn = None
global hits, misses
key = (serialize(args),serialize(kwargs), inner_func, kwargs.get("since"), kwargs.get("to"))
# TODO: also factor in default values to get better chance of hits
try:
return cache[key]

View File

@ -19,6 +19,10 @@
</a>
{%- endfor %}
{% if info.medals.gold or info.medals.silver or info.medals.bronze %}
<span class="spacer" ></span>
{% endif %}
{%- endmacro %}
@ -40,6 +44,10 @@
{%- endif %}
</span>
{% if info.topweeks > 0 %}
<span class="spacer" ></span>
{% endif %}
{%- endmacro %}

View File

@ -20,6 +20,10 @@
</a>
{%- endfor %}
{% if info.medals.gold or info.medals.silver or info.medals.bronze %}
<span class="spacer" ></span>
{% endif %}
{%- endmacro %}
@ -42,6 +46,10 @@
{%- endif %}
</span>
{% if info.topweeks > 0 %}
<span class="spacer" ></span>
{% endif %}
{%- endmacro %}

View File

@ -17,6 +17,10 @@
</a>
{%- endfor %}
{% if info.medals.gold or info.medals.silver or info.medals.bronze %}
<span class="spacer" ></span>
{% endif %}
{%- endmacro %}
@ -39,6 +43,10 @@
{% endif %}
</span>
{% if info.topweeks > 0 %}
<span class="spacer" ></span>
{% endif %}
{%- endmacro %}

View File

@ -74,6 +74,11 @@ table.top_info td.text table.image_row td:hover {
}
span.spacer {
width: 9px;
display: inline-block;
}
/** SCROLLBAR **/