move public list to the top

This commit is contained in:
j 2019-01-19 18:39:34 +05:30
commit 9c393cdd56
4 changed files with 42 additions and 10 deletions

View file

@ -349,7 +349,7 @@ def sortLists(data):
'''
n = 0
logger.debug('sortLists %s', data)
lists = []
lists = ['Public']
for id in data['ids']:
l = models.List.get(id)
l.index_ = n