Update 'face_recognition/app/app.py'

This commit is contained in:
fabrice 2019-06-10 10:35:09 +00:00
parent 711e78cfbe
commit a284227308

View File

@ -12,7 +12,7 @@ def hello_docker():
@app.route('/acces_minio')
def access_minio():
for bucket in minioClient.list_buckets():
print(bucket.name, bucket.creation_date, flush=True)
print(bucket.name, bucket.creation_date, flush=True)
return('Connection Succesfull')
@ -20,8 +20,8 @@ def access_minio():
def new_user_id():
id = None
for limited_try in range(0,5):
id = str(uuid.uuid4())
if check_id(id) == False:
id = str(uuid.uuid4())
if check_id(id) == False:
break
#funktionalität implementieres s3 Platzhalterdatei anlegen für user,
return(id)
@ -33,9 +33,9 @@ def check_id(id):
known = False
for user in users:
if id == user.object_name.encode('utf-8'):
known = True
known = True
else:
pass
pass
return known
def setup():