diff --git a/README.md b/README.md index 0d4f00c..0078159 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Install is either via pip or cloning the repository. From pip: ```sh -python3 -m pip install thothlibrary==0.7.0 +python3 -m pip install thothlibrary==0.8.1 ``` Or from the repo: diff --git a/thothlibrary/__init__.py b/thothlibrary/__init__.py index 52caf6b..95e02fc 100644 --- a/thothlibrary/__init__.py +++ b/thothlibrary/__init__.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """GraphQL client for Thoth""" -__version__ = "0.8.0" +__version__ = "0.8.1" __author__ = "Javier Arias " __copyright__ = "Copyright (c) 2020 Open Book Publishers" __license__ = "Apache 2.0" diff --git a/thothlibrary/thoth-0_6_0/structures.py b/thothlibrary/thoth-0_6_0/structures.py index 347d898..837e112 100644 --- a/thothlibrary/thoth-0_6_0/structures.py +++ b/thothlibrary/thoth-0_6_0/structures.py @@ -107,8 +107,7 @@ def _contributor_formatter(contributor): @return: A formatted contributor object """ format_str = f"{contributor.fullName} " \ - f"({contributor.contributions[0].contributionType} of " \ - f"{contributor.contributions[0].work.fullTitle}) " \ + f"contributed to {len(contributor.contributions)} works " \ f"[{contributor.contributorId}]" return _generic_formatter(contributor, 'Contributor', format_str)