1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Added chart performance database call

This commit is contained in:
Krateng
2019-04-09 12:13:07 +02:00
parent 7d04ea3953
commit b3423dabcf
2 changed files with 43 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ def instructions(keys):
newdate = tod - d
weekstart = [newdate.year,newdate.month,newdate.day]
clock()
#clock()
# artists
@@ -30,7 +30,7 @@ def instructions(keys):
topartists_month = module_artistcharts_tiles(since="month")
topartists_week = module_artistcharts_tiles(since=weekstart)
clockp("Artists")
#clockp("Artists")
# tracks
@@ -40,7 +40,7 @@ def instructions(keys):
toptracks_week = module_trackcharts_tiles(since=weekstart)
clockp("Tracks")
#clockp("Tracks")
@@ -48,7 +48,7 @@ def instructions(keys):
# scrobbles
html_scrobbles, _, _ = module_scrobblelist(max_=15,shortTimeDesc=True,pictures=True,earlystop=True)
clockp("Scrobbles")
#clockp("Scrobbles")
# stats
@@ -69,7 +69,7 @@ def instructions(keys):
amount_total = database.get_scrobbles_num()
scrobbles_total = "<a href='/scrobbles'>" + str(amount_total) + "</a>"
clockp("Amounts")
#clockp("Amounts")
# pulse
dt = datetime.utcnow()
@@ -91,7 +91,7 @@ def instructions(keys):
#html_pulse_month = module_pulse(max_=30,since=[dt.year,dt.month],step="day",trail=1)
#html_pulse_year = module_pulse(max_=12,since=[dt.year],step="month",trail=1)
clockp("Pulse")
#clockp("Pulse")
#pushresources = [{"file":img,"type":"image"} for img in artistimages + trackimages] #can't push scrobble images as we don't get them from the module function, need to think about that
pushresources = []