From f9b2eb2438281ccd79df347ddc245b5b0982953e Mon Sep 17 00:00:00 2001 From: John Chilton Date: Wed, 22 Aug 2012 16:57:04 -0500 Subject: [PATCH] Create method in libraries API should return the created library not an array containing only the created library. This was confirmed by dannon in the comments on issue 802. --- lib/galaxy/web/api/libraries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/web/api/libraries.py b/lib/galaxy/web/api/libraries.py index cefdf7b3ebe..98208efaf74 100644 --- a/lib/galaxy/web/api/libraries.py +++ b/lib/galaxy/web/api/libraries.py @@ -98,7 +98,7 @@ class LibrariesController( BaseAPIController ): rval['url'] = url_for( 'library', id=encoded_id ) rval['name'] = name rval['id'] = encoded_id - return [ rval ] + return rval @web.expose_api def delete( self, trans, id, **kwd ):