Skip to content

Commit

Permalink
Fix webUI bug when using Gzipped FASTA as templates
Browse files Browse the repository at this point in the history
  • Loading branch information
billzt committed Feb 9, 2021
1 parent 842dd5c commit 565be15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion primerserver2/web/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def check():
else:
msg = f'File {db_dir}/{dbname} does not exist'
return {'status': status, 'msg': msg}
if os.path.isfile(f'{db_dir}/{dbname}.nhr') is False:
if os.path.isfile(f'{db_dir}/{dbname}.nhr') is False and os.path.isfile(f'{db_dir}/{dbname.replace(".gz", "")}.nhr') is False:
msg = f'File {db_dir}/{dbname}.nhr does not exist. Use "makeblastdb" to index {db_dir}/{dbname}'
return {'status': status, 'msg': msg}
if os.path.isfile(f'{db_dir}/{dbname}.fai') is False:
Expand Down

0 comments on commit 565be15

Please sign in to comment.