mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Sort result files for sorted download buttons.
This commit is contained in:
parent
695a57560f
commit
873997fbbf
@ -31,7 +31,7 @@ def corpus(corpus_id):
|
||||
'corpora',
|
||||
str(corpus.id))
|
||||
files = {}
|
||||
for file in os.listdir(dir):
|
||||
for file in sorted(os.listdir(dir)):
|
||||
files[file] = {}
|
||||
files[file]['path'] = os.path.join(file)
|
||||
|
||||
@ -110,7 +110,7 @@ def job(job_id):
|
||||
'jobs',
|
||||
str(job.id))
|
||||
files = {}
|
||||
for file in os.listdir(dir):
|
||||
for file in sorted(os.listdir(dir)):
|
||||
if file == 'output':
|
||||
continue
|
||||
files[file] = {}
|
||||
|
Loading…
Reference in New Issue
Block a user