Skip to content

Commit

Permalink
4.2.9 bump, update_organism bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Cory Maughmer committed Sep 4, 2020
1 parent 3cc6145 commit 0d30799
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ Or with the Arrow client:
History
-------

- 4.2.9
- Bugfix to update_organism when using suppress_output
- 4.2.8
- Added --suppress_output to update_organism
- 4.2.7
Expand Down
7 changes: 5 additions & 2 deletions apollo/organisms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,11 @@ def update_organism(self, organism_id, common_name, directory, blatdb=None, spec
if suppress_output is not None and suppress_output is True:
data['returnAllOrganisms'] = False

response = self.post('updateOrganismInfo', data)[0]

if suppress_output:
response = self.post('updateOrganismInfo', data)
else:
response = self.post('updateOrganismInfo', data)[0]

if len(response.keys()) == 0:
return self.show_organism(organism_id)
return response
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setup(
name="apollo",
version='4.2.8',
version='4.2.9',
description="Apollo API library",
long_description=readme,
author="Helena Rasche;Anthony Bretaudeau;Nathan Dunn",
Expand Down

0 comments on commit 0d30799

Please sign in to comment.