oasis-art-project / oasis-server

Platform for the local arts
Other
2 stars 0 forks source link

Error in populate script #65

Closed carcruz closed 5 years ago

carcruz commented 5 years ago

How to reproduce: run populate script while the server is running.

Error: looks like an error related to upload_images function

('Uploading images for user', u'Maggie', u'Maden')
Traceback (most recent call last):
  File "populate.py", line 187, in <module>
    upload_images(base_path, "user", uid, user)
  File "populate.py", line 106, in upload_images
    f += [('images', (fn, open(full_path, 'rb'), mtype))]
TypeError: cannot concatenate 'str' and 'list' objects
codeanticode commented 5 years ago

@carcruz try again after pulling this commit

https://github.com/codeanticode/oasis-server/commits/master

carcruz commented 5 years ago

looks like is woking now, and supports local images directory so 👍