mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2024-12-28 02:16:16 +00:00
Added serverside cache for home tab
This commit is contained in:
parent
f31f81e1de
commit
2d44132745
6
app.py
6
app.py
|
@ -25,6 +25,7 @@ class deemix:
|
|||
self.qm = QueueManager()
|
||||
|
||||
self.chartsList = []
|
||||
self.homeCache = None
|
||||
|
||||
def shutdown(self, interface=None):
|
||||
if self.set.settings['saveDownloadQueue']:
|
||||
|
@ -54,6 +55,11 @@ class deemix:
|
|||
self.chartsList = countries
|
||||
return self.chartsList
|
||||
|
||||
def get_home(self, dz):
|
||||
if not self.homeCache:
|
||||
self.homeCache = session['dz'].get_charts()
|
||||
return self.homeCache
|
||||
|
||||
def getDownloadFolder(self):
|
||||
return self.set.settings['downloadLocation']
|
||||
|
||||
|
|
Loading…
Reference in a new issue