mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-22 13:39:19 +02:00
Default playlists ordering by modification date
This commit is contained in:
parent
12a02ab6be
commit
9139e0c78a
|
@ -130,12 +130,13 @@ def get_channels(page=None, q=None, tag=None, pg=None):
|
|||
|
||||
|
||||
@logger.catch
|
||||
def get_playlists(page=None, page_size=None, q=None, pg=None):
|
||||
def get_playlists(page=None, page_size=None, q=None, ordering='-modification_date', pg=None):
|
||||
'''List playlists'''
|
||||
params = {
|
||||
'page': page,
|
||||
'page_size': page_size,
|
||||
'q': q
|
||||
'q': q,
|
||||
'ordering': ordering
|
||||
}
|
||||
if pg:
|
||||
r = s.get(pg)
|
||||
|
|
Loading…
Reference in New Issue