|
@@ -2,7 +2,6 @@ from glob import glob
|
|
|
from os import path, mkdir, getcwd
|
|
|
from os.path import exists
|
|
|
from time import time
|
|
|
-from uuid import uuid1
|
|
|
|
|
|
import eventlet
|
|
|
import socketio
|
|
@@ -10,7 +9,6 @@ from flask import Flask, make_response, send_from_directory, request
|
|
|
from werkzeug import formparser
|
|
|
|
|
|
from pycs.ApplicationStatus import ApplicationStatus
|
|
|
-from pycs.pipeline.PipelineManager import PipelineManager
|
|
|
from pycs.util.GenericWrapper import GenericWrapper
|
|
|
from pycs.util.ProgressFileWriter import ProgressFileWriter
|
|
|
from pycs.util.RecursiveDictionary import set_recursive
|
|
@@ -106,14 +104,15 @@ class WebServer:
|
|
|
file_path = path.join(upload_path, f'{file_uuid}{file_extension.value}')
|
|
|
|
|
|
# add job to app status
|
|
|
- job.value = app_status['jobs'].append({
|
|
|
+ project['jobs'][file_uuid] = {
|
|
|
'id': file_uuid,
|
|
|
'type': 'upload',
|
|
|
'progress': 0,
|
|
|
'filename': filename,
|
|
|
'created': int(time()),
|
|
|
'finished': None
|
|
|
- })
|
|
|
+ }
|
|
|
+ job.value = project['jobs'][file_uuid]
|
|
|
|
|
|
# create upload path if not exists
|
|
|
if not path.exists(upload_path):
|