From 9e9081f9f67f3db4d80702264472578441347c6b Mon Sep 17 00:00:00 2001 From: Thomas Hassenstein <2021544@stud.hs-mannheim.de> Date: Mon, 12 Jun 2023 15:50:47 +0200 Subject: [PATCH] =?UTF-8?q?Dateien=20hochladen=20nach=20=E2=80=9EREST?= =?UTF-8?q?=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit flask anpassung variablen namen --- REST/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/REST/app.py b/REST/app.py index ea47dc3..b606c2e 100644 --- a/REST/app.py +++ b/REST/app.py @@ -25,9 +25,9 @@ def initialize_generator(): if result is True: initialized = True return create_response(200, 'Successful operation; random number generator is ready and random numbers can be requested') - if random_numbers == 400: + if result == 400: return create_response(500, 'Tests failed, try again') - if random_numbers is False: + if result is False: return create_response(500, 'Unable to generate random numbers. Restart/Reset System') else: return create_response(555, 'Unable to initialize the random number generator within a timeout of 60 seconds')