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:
|
with open(import_name, 'wb') as fd:
|
||||||
fd.write(upload.body)
|
fd.write(upload.body)
|
||||||
file = add_file(id, import_name, prefix_books)
|
file = add_file(id, import_name, prefix_books)
|
||||||
|
file.move()
|
||||||
else:
|
else:
|
||||||
user = state.user()
|
user = state.user()
|
||||||
file.item.add_user(user)
|
file.item.add_user(user)
|
||||||
|
|
Loading…
Add table
Reference in a new issue