mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Fixed bug with chart bars
This commit is contained in:
parent
439d12d87f
commit
fa05c40660
@ -5,7 +5,7 @@ author = {
|
||||
"email":"maloja@krateng.dev",
|
||||
"github": "krateng"
|
||||
}
|
||||
version = 2,7,4
|
||||
version = 2,7,5
|
||||
versionstr = ".".join(str(n) for n in version)
|
||||
links = {
|
||||
"pypi":"malojaserver",
|
||||
|
@ -35,11 +35,9 @@
|
||||
|
||||
|
||||
{% import 'partials/charts_artists.jinja' as charts_artists %}
|
||||
|
||||
{{ charts_artists.charts_artists(limitkeys,amountkeys,compare=true) }}
|
||||
|
||||
{% import 'snippets/pagination.jinja' as pagination %}
|
||||
|
||||
{{ pagination.pagination(filterkeys,limitkeys,delimitkeys,amountkeys,pages) }}
|
||||
|
||||
{% endblock %}
|
||||
|
@ -35,11 +35,9 @@
|
||||
|
||||
|
||||
{% import 'partials/charts_tracks.jinja' as charts_tracks %}
|
||||
|
||||
{{ charts_tracks.charts_tracks(filterkeys,limitkeys,amountkeys,charts=charts,compare=true) }}
|
||||
|
||||
{% import 'snippets/pagination.jinja' as pagination %}
|
||||
|
||||
{{ pagination.pagination(filterkeys,limitkeys,delimitkeys,amountkeys,pages) }}
|
||||
|
||||
{% endblock %}
|
||||
|
@ -2,13 +2,9 @@
|
||||
|
||||
{% set ranges = dbp.get_performance(filterkeys,limitkeys,delimitkeys) %}
|
||||
|
||||
{% set minrank = 80 %}
|
||||
{% for r in ranges %}
|
||||
{% if r.rank is not none and r.rank+20 > minrank %}
|
||||
{% set minrank = r.rank+20 %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% set minrank = ranges|map(attribute="rank")|reject("none")|max|default(60) %}
|
||||
{% set minrank = minrank + 20 %}
|
||||
{% if minrank < 80 %}{% set minrank = 80 %}{% endif %}
|
||||
|
||||
<table class="list">
|
||||
{% for t in ranges %}
|
||||
@ -25,7 +21,7 @@
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
@ -2,12 +2,8 @@
|
||||
|
||||
{% set ranges = dbp.get_pulse(filterkeys,limitkeys,delimitkeys) %}
|
||||
|
||||
{% set maxbar = 1 %}
|
||||
{% for r in ranges %}
|
||||
{% if r.scrobbles > maxbar %}
|
||||
{% set maxbar = r.scrobbles %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% set maxbar = ranges|map(attribute="scrobbles")|max|default(1) %}
|
||||
{% if maxbar < 1 %}{% set maxbar = 1 %}{% endif %}
|
||||
|
||||
<table class="list">
|
||||
{% for t in ranges %}
|
||||
|
Loading…
Reference in New Issue
Block a user