mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Fixed bug for trend indicators with unlimited time ranges
This commit is contained in:
parent
fa05c40660
commit
47087b4288
|
@ -5,7 +5,7 @@ author = {
|
||||||
"email":"maloja@krateng.dev",
|
"email":"maloja@krateng.dev",
|
||||||
"github": "krateng"
|
"github": "krateng"
|
||||||
}
|
}
|
||||||
version = 2,7,5
|
version = 2,7,6
|
||||||
versionstr = ".".join(str(n) for n in version)
|
versionstr = ".".join(str(n) for n in version)
|
||||||
links = {
|
links = {
|
||||||
"pypi":"malojaserver",
|
"pypi":"malojaserver",
|
||||||
|
|
|
@ -7,7 +7,9 @@
|
||||||
{% if compare %}
|
{% if compare %}
|
||||||
{% if compare is true %}
|
{% if compare is true %}
|
||||||
{% set compare = limitkeys.timerange.next(step=-1) %}
|
{% set compare = limitkeys.timerange.next(step=-1) %}
|
||||||
|
{% if compare is none %}{% set compare = False %}{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if compare %}
|
||||||
{% set prevartists = dbp.get_charts_artists(filterkeys,{'timerange':compare}) %}
|
{% set prevartists = dbp.get_charts_artists(filterkeys,{'timerange':compare}) %}
|
||||||
|
|
||||||
{% set lastranks = {} %}
|
{% set lastranks = {} %}
|
||||||
|
@ -21,6 +23,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% set firstindex = amountkeys.page * amountkeys.perpage %}
|
{% set firstindex = amountkeys.page * amountkeys.perpage %}
|
||||||
{% set lastindex = firstindex + amountkeys.perpage %}
|
{% set lastindex = firstindex + amountkeys.perpage %}
|
||||||
|
|
|
@ -6,7 +6,9 @@
|
||||||
{% if compare %}
|
{% if compare %}
|
||||||
{% if compare is true %}
|
{% if compare is true %}
|
||||||
{% set compare = limitkeys.timerange.next(step=-1) %}
|
{% set compare = limitkeys.timerange.next(step=-1) %}
|
||||||
|
{% if compare is none %}{% set compare = False %}{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if compare %}
|
||||||
{% set prevtracks = dbp.get_charts_tracks(filterkeys,{'timerange':compare}) %}
|
{% set prevtracks = dbp.get_charts_tracks(filterkeys,{'timerange':compare}) %}
|
||||||
|
|
||||||
{% set lastranks = {} %}
|
{% set lastranks = {} %}
|
||||||
|
@ -20,6 +22,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% set firstindex = amountkeys.page * amountkeys.perpage %}
|
{% set firstindex = amountkeys.page * amountkeys.perpage %}
|
||||||
{% set lastindex = firstindex + amountkeys.perpage %}
|
{% set lastindex = firstindex + amountkeys.perpage %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user