Ver código fonte

Merge branch 'minor' of sindre/Beelance into master

pull/38/head
Sindre Stephansen 5 anos atrás
pai
commit
608a60559b
1 arquivos alterados com 2 adições e 6 exclusões
  1. +2
    -6
      src/app/views/project.py

+ 2
- 6
src/app/views/project.py Ver arquivo

@@ -64,14 +64,10 @@ class Project:
# Create the project directory if it doesnt exist # Create the project directory if it doesnt exist
path = 'static/project' + data.projectid path = 'static/project' + data.projectid
if not os.path.isdir(path): if not os.path.isdir(path):
command = 'mkdir ' + path
os.popen(command)
sleep(0.2)
os.mkdir(path)
path = path + '/task' + data.taskid path = path + '/task' + data.taskid
if not os.path.isdir(path): if not os.path.isdir(path):
command = 'mkdir ' + path
os.popen(command)
sleep(0.2)
os.mkdir(path)
open(path + '/' + fn, 'wb').write(fileitem.file.read()) open(path + '/' + fn, 'wb').write(fileitem.file.read())
models.project.set_task_file(data.taskid, (path + "/" + fn)) models.project.set_task_file(data.taskid, (path + "/" + fn))
except: except:


Carregando…
Cancelar
Salvar