Commit 2e516724 authored by Ryan Herbert's avatar Ryan Herbert

file.py optimise loop

There's no point in continuing the loop once we have found what we want.
parent df27a475
......@@ -174,6 +174,7 @@ def add_form():
for row in query :
if row.filename == request.vars['filename'] :
error += " this sequence file already exists for this patient"
break
if request.vars['run_id'] != '' :
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment