Skip to content

Commit

Permalink
response comprehension change
Browse files Browse the repository at this point in the history
  • Loading branch information
Cory Maughmer committed Sep 4, 2020
1 parent 944d104 commit 1133482
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions apollo/organisms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,8 @@ 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

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
# full response unused anyway, switched to unified display of show_organism
return self.show_organism(organism_id)

def get_organisms(self, common_name=None):
"""
Expand Down

0 comments on commit 1133482

Please sign in to comment.