Skip to content
Snippets Groups Projects
Commit 2195ace0 authored by Vermaat's avatar Vermaat
Browse files

Accept trailing tabs in batch input

git-svn-id: https://humgenprojects.lumc.nl/svn/mutalyzer/trunk@663 eb6bd6ab-9ccd-42b9-aceb-e2899b4a52f1
parent 9e872112
No related branches found
No related tags found
No related merge requests found
......@@ -355,7 +355,7 @@ class File() :
ret.append("~!InputFields: " + '|'.join(job))
ret.extend(['~!' for _ in range(columns - 1)])
else:
ret.extend(job)
ret.extend([j or '~!' for j in job])
#else
if not ret:
......
......@@ -1069,6 +1069,10 @@ class BatchProgress:
D = Db.Batch()
left = D.entriesLeftForJob(jobID)
percentage = int(100 - (100 * left / float(total)))
if percentage < 0:
percentage = 0
elif percentage > 100:
percentage = 100
if i.ajax:
if percentage == 100:
#download url, check if file still exists
......
......@@ -430,6 +430,17 @@ class TestWSGI():
size=len(variants),
header='Input\tErrors | Messages')
def test_batch_namechecker_extra_tab(self):
"""
Submit the batch name checker form with lines ending with tab
characters.
"""
variants=['AB026906.1(SDHD):g.7872G>T\t']
self._batch('NameChecker',
file='\n'.join(variants),
size=len(variants),
header='Input\tErrors | Messages')
def test_batch_syntaxchecker(self):
"""
Submit the batch syntax checker form.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment