mirror of
http://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-25 14:11:26 +00: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
|
@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'''
|
'''List playlists'''
|
||||||
params = {
|
params = {
|
||||||
'page': page,
|
'page': page,
|
||||||
'page_size': page_size,
|
'page_size': page_size,
|
||||||
'q': q
|
'q': q,
|
||||||
|
'ordering': ordering
|
||||||
}
|
}
|
||||||
if pg:
|
if pg:
|
||||||
r = s.get(pg)
|
r = s.get(pg)
|
||||||
|
|
Loading…
Reference in a new issue