From: Mats Sjöberg Date: Tue, 21 May 2013 19:55:55 +0000 (+0300) Subject: Piwigo minor fix in categories_getList. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cac478e5aac621fc80adf0ef4534c646ab3c4fdc;p=mediagoblin.git Piwigo minor fix in categories_getList. --- diff --git a/mediagoblin/plugins/piwigo/views.py b/mediagoblin/plugins/piwigo/views.py index 5285ce65..78668ed4 100644 --- a/mediagoblin/plugins/piwigo/views.py +++ b/mediagoblin/plugins/piwigo/views.py @@ -80,14 +80,14 @@ def pwg_session_getStatus(request): @CmdTable("pwg.categories.getList") def pwg_categories_getList(request): - collections = Collection.query.filter_by( - get_creator=request.user).order_by(Collection.title) - catlist = [{'id': -29711, 'uppercats': "-29711", 'name': "All my images"}] if request.user: + collections = Collection.query.filter_by( + get_creator=request.user).order_by(Collection.title) + for c in collections: catlist.append({'id': c.id, 'uppercats': str(c.id),