Skip to content

Commit

Permalink
Merge pull request #48 from briehl/report_lookup
Browse files Browse the repository at this point in the history
fixed some slowdown in report fetching
  • Loading branch information
briehl authored May 31, 2018
2 parents 0f2d271 + 317ada1 commit 6ebeda8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kbase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ service-language:
python

module-version:
0.0.8
0.0.9

owners:
[rsutormin, msneddon, wjriehl]
Expand Down
2 changes: 1 addition & 1 deletion lib/NarrativeService/ReportFetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def find_report_from_copy_source(self, upa):
Fetch the info about this object. If it's a copy, run find_report_from_object on its source.
If it's not, return an error state, or just an empty list for the upas.
"""
obj_data = self.ws_client.get_objects2({'objects': [{'ref': upa}]})['data'][0]
obj_data = self.ws_client.get_objects2({'objects': [{'ref': upa}], 'no_data': 1})['data'][0]
if obj_data.get('copy_source_inaccessible', 0) == 1:
err = "No report found. This object is a copy, and its source is inaccessible."
return self.build_output(upa, [], inaccessible=1, error=err)
Expand Down

0 comments on commit 6ebeda8

Please sign in to comment.