mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-04-08 10:14:23 +00:00
Add dir to job creation.
This commit is contained in:
parent
6f8a8dbc77
commit
fca352c3dd
@ -56,7 +56,11 @@ def service(service_handle):
|
|||||||
''' TODO: Use secure filename '''
|
''' TODO: Use secure filename '''
|
||||||
filename = secure_filename(file.filename)
|
filename = secure_filename(file.filename)
|
||||||
file.save(os.path.join(dir, filename))
|
file.save(os.path.join(dir, filename))
|
||||||
job_input = JobInput(filename=filename, job=job)
|
job_input = JobInput(
|
||||||
|
dir=os.path.join(str(job.user_id), 'jobs', str(job.id)),
|
||||||
|
filename=filename,
|
||||||
|
job=job
|
||||||
|
)
|
||||||
db.session.add(job_input)
|
db.session.add(job_input)
|
||||||
job.status = 'submitted'
|
job.status = 'submitted'
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user