move after import
This commit is contained in:
parent
fa916d11b7
commit
90b788e48b
1 changed files with 1 additions and 0 deletions
|
@ -186,6 +186,7 @@ class UploadHandler(tornado.web.RequestHandler):
|
|||
with open(import_name, 'wb') as fd:
|
||||
fd.write(upload.body)
|
||||
file = add_file(id, import_name, prefix_books)
|
||||
file.move()
|
||||
else:
|
||||
user = state.user()
|
||||
file.item.add_user(user)
|
||||
|
|
Loading…
Reference in a new issue