Skip to content
This repository was archived by the owner on Mar 8, 2025. It is now read-only.

Commit 565be15

Browse files
author
billzt
committed
Fix webUI bug when using Gzipped FASTA as templates
1 parent 842dd5c commit 565be15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

primerserver2/web/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def check():
5252
else:
5353
msg = f'File {db_dir}/{dbname} does not exist'
5454
return {'status': status, 'msg': msg}
55-
if os.path.isfile(f'{db_dir}/{dbname}.nhr') is False:
55+
if os.path.isfile(f'{db_dir}/{dbname}.nhr') is False and os.path.isfile(f'{db_dir}/{dbname.replace(".gz", "")}.nhr') is False:
5656
msg = f'File {db_dir}/{dbname}.nhr does not exist. Use "makeblastdb" to index {db_dir}/{dbname}'
5757
return {'status': status, 'msg': msg}
5858
if os.path.isfile(f'{db_dir}/{dbname}.fai') is False:

0 commit comments

Comments
 (0)