Skip to content

Commit

Permalink
bug with zenodo generation
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsochat@stanford.edu>
  • Loading branch information
vsoch committed Jul 30, 2020
1 parent abc7308 commit 50117d2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ and **Merged pull requests**. Critical items to know are:
The versions coincide with releases on pip.

## [0.0.x](https://github.com/con/tributors/tree/master) (0.0.x)
- unicode characters allowed, and dont update users with orcids (0.0.16)
- unicode characters allowed, and dont update users with orcids (0.0.17)
- should allow for repository names with .git extension (0.0.15)
- adding support to do updates `--from` (between) resources (0.0.14)
- adding github to update-lookup, not doing by default (0.0.13)
Expand Down
5 changes: 4 additions & 1 deletion tributors/main/parsers/zenodo.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,12 @@ def update_orcids(self):
name = user.get("name")
email = user.get("email")
if orcid is not None:
creators.append(user)
continue
if email or name and self.orcid_token is not None:
orcid = get_orcid(email=email, token=self.orcid_token, name=name)
orcid = get_orcid(
email=email, token=self.orcid_token, name=name.strip()
)
if orcid:
user["orcid"] = orcid
creators.append(user)
Expand Down
2 changes: 1 addition & 1 deletion tributors/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"""

__version__ = "0.0.16"
__version__ = "0.0.17"
AUTHOR = "Vanessa Sochat"
AUTHOR_EMAIL = "vsochat@stanford.edu"
NAME = "tributors"
Expand Down

0 comments on commit 50117d2

Please sign in to comment.