getimage in iot change

This commit is contained in:
Manuel Hude
2020-12-09 17:26:59 +01:00
parent d093dbb5b9
commit f75a42c703
2 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ class ImageEndpoint:
if not MongoDBService.createSingle(metadata, identifier, decoded_image):
print("Could not save metadata")
return JsonResponse({'Result': 'Error - could not upload to MongoDB', 'id': identifier, 'filename': filename}, status=500,safe=False)
return JsonResponse({'Result': 'Error - could not upload to MongoDB', 'id': identifier, 'filename': filename},status=500,safe=False)
if not DropboxService.create_file(filename, decoded_image):
print("Could not save image to dropbox")
return JsonResponse({'Result': 'Error - could not upload to Dropbox', 'id': identifier, 'filename': filename},status=500, safe=False)