move after import

This commit is contained in:
j 2016-01-15 14:02:13 +05:30
parent fa916d11b7
commit 90b788e48b
1 changed files with 1 additions and 0 deletions

View File

@ -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)