Frontend issue 927 is now fixed, so the tag.create endpoint can be used.

The tag.create endpoint doesn't return the newly created tag - it is invisible, since it has no photos.
This commit is contained in:
sneakypete81 2013-03-23 18:17:09 +00:00
parent 29b4c65b9a
commit b56e690d33
2 changed files with 18 additions and 17 deletions

View file

@ -15,9 +15,8 @@ class ApiTag:
self._client = client
def create(self, tag, **kwds):
""" Create a new tag and return it """
result = self._client.post("/tag/create.json", tag=tag, **kwds)["result"]
return Tag(self._client, result)
""" Create a new tag. The API returns true if the tag was sucessfully created """
return self._client.post("/tag/create.json", tag=tag, **kwds)["result"]
def delete(self, tag, **kwds):
""" Delete a tag """