From a284227308ce2feaef77a2f91ac4d93b75d0ae5b Mon Sep 17 00:00:00 2001 From: fabrice Date: Mon, 10 Jun 2019 10:35:09 +0000 Subject: [PATCH] Update 'face_recognition/app/app.py' --- face_recognition/app/app.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/face_recognition/app/app.py b/face_recognition/app/app.py index 133b928..c148481 100644 --- a/face_recognition/app/app.py +++ b/face_recognition/app/app.py @@ -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():