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:
parent
29b4c65b9a
commit
b56e690d33
2 changed files with 18 additions and 17 deletions
|
@ -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 """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue