publishers_9.py 238 B

12345678
  1. def move_upload(pub, file_path, file_name, meta_data=None):
  2. upload = new_upload(pub, file_name, meta_data)
  3. shutil.move(file_path, upload.file_path)
  4. upload.status = "Queued for processing"
  5. upload.save()
  6. return upload