Skip to content

Commit

Permalink
Fixed input reported in querystatus in some cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Monson committed Dec 19, 2014
1 parent 44e7e81 commit 0a74431
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion querystatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,10 @@ def mainCGI():
# this code should be cleaned up once local PDB2PQR runs output the PDB file with the .pdb extension
if have_opal:
for i in range(0,len(filelist)):
if len(filelist[i]._name) == 4:
if ((len(filelist[i]._name) == 4 and '.' not in filelist[i]._name) or
(filelist[i]._name.endswith(".pdb") and "pdb2pka_output" not in filelist[i]._name)):
print "<li><a href=%s>%s</a></li>" % (filelist[i]._url, filelist[i]._name)
break
else:
print "<li><a href=%s%s%s/%s.pdb>%s.pdb</a></li>" % (WEBSITE, TMPDIR, jobid, jobid, jobid)

Expand Down

0 comments on commit 0a74431

Please sign in to comment.