Default ordering for tags has changed

This commit is contained in:
localhost_frssoft 2023-06-17 23:44:32 +03:00
parent bdebbcf2b3
commit 859247021a

View File

@ -272,9 +272,10 @@ def list_libraries(page=None, page_size=None, q=None, scope='all', pg=None):
@logger.catch @logger.catch
def get_tags(q=None, pg=None): def get_tags(q=None, ordering='-creation_date', pg=None):
params = { params = {
'q': q, 'q': q,
'ordering': ordering
} }
if pg: if pg:
r = current_instance.s.get(pg) r = current_instance.s.get(pg)