mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +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',
|
'corpora',
|
||||||
str(corpus.id))
|
str(corpus.id))
|
||||||
files = {}
|
files = {}
|
||||||
for file in os.listdir(dir):
|
for file in sorted(os.listdir(dir)):
|
||||||
files[file] = {}
|
files[file] = {}
|
||||||
files[file]['path'] = os.path.join(file)
|
files[file]['path'] = os.path.join(file)
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ def job(job_id):
|
|||||||
'jobs',
|
'jobs',
|
||||||
str(job.id))
|
str(job.id))
|
||||||
files = {}
|
files = {}
|
||||||
for file in os.listdir(dir):
|
for file in sorted(os.listdir(dir)):
|
||||||
if file == 'output':
|
if file == 'output':
|
||||||
continue
|
continue
|
||||||
files[file] = {}
|
files[file] = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user