Rename process image function

This commit is contained in:
Tanner Collin 2020-01-23 22:32:31 +00:00
parent c0fa194818
commit 3f293f2cea

View File

@ -100,7 +100,7 @@ for o in old:
if str(o.id) in photo_folders: if str(o.id) in photo_folders:
folder = 'old_photos/' + str(o.id) folder = 'old_photos/' + str(o.id)
if 'photo.jpg' in os.listdir(folder): if 'photo.jpg' in os.listdir(folder):
small, medium, large = utils.process_image(folder + '/photo.jpg') small, medium, large = utils.process_image_upload(folder + '/photo.jpg')
print('Found a photo') print('Found a photo')
models.Member.objects.create(photo_small=small, photo_medium=medium, photo_large=large, **new) models.Member.objects.create(photo_small=small, photo_medium=medium, photo_large=large, **new)