Skip to content

Commit

Permalink
Merge branch 'release/v0.10.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
ja573 committed Feb 2, 2022
2 parents 4a67f87 + 178f4c8 commit 0d7bb89
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Install is either via pip or cloning the repository.

From pip:
```sh
python3 -m pip install thothlibrary==0.10.0
python3 -m pip install thothlibrary==0.10.1
```

Or from the repo:
Expand Down
2 changes: 1 addition & 1 deletion thothlibrary/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
"""GraphQL client for Thoth"""

__version__ = "0.10.0"
__version__ = "0.10.1"
__author__ = "Javier Arias <[email protected]>"
__copyright__ = "Copyright (c) 2020 Open Book Publishers"
__license__ = "Apache 2.0"
Expand Down
4 changes: 2 additions & 2 deletions thothlibrary/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ def create_imprint(self, imprint):
"""Construct and trigger a mutation to add a new imprint object"""
return self.mutation("createImprint", imprint)

def create_work(self, work):
def create_work(self, work, units="MM"):
"""Construct and trigger a mutation to add a new work object"""
return self.mutation("createWork", work)
return self.mutation("createWork", work, units)

def create_publication(self, publication):
"""Construct and trigger a mutation to add a new publication object"""
Expand Down

0 comments on commit 0d7bb89

Please sign in to comment.