Skip to content

Commit

Permalink
Fix default for "is_single_end" function
Browse files Browse the repository at this point in the history
  • Loading branch information
rafelafrance committed May 25, 2021
1 parent ff56563 commit 02ba25e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/blast.py
Expand Up @@ -108,8 +108,7 @@ def get_raw_hits(log, json_file):
'You may need to upgrade blast.')
log.fatal(err)

return obj['BlastOutput2'][0]['report']['results']['search'].get(
'hits', [])
return obj['BlastOutput2'][0]['report']['results']['search'].get('hits', [])


def hits(log, json_file):
Expand Down
2 changes: 1 addition & 1 deletion lib/db.py
Expand Up @@ -103,7 +103,7 @@ def get_version(cxn):

def is_single_end(cxn):
"""Was the database build for single ends."""
result = get_metadata(cxn, 'single_ends')
result = get_metadata(cxn, 'single_ends', default='0')
return result != '0'


Expand Down

0 comments on commit 02ba25e

Please sign in to comment.