Dateien hochladen nach „REST“

flask anpassung variablen namen
main
Thomas Hassenstein 2023-06-12 15:50:47 +02:00
parent 927ab5d665
commit 9e9081f9f6
1 changed files with 2 additions and 2 deletions

View File

@ -25,9 +25,9 @@ def initialize_generator():
if result is True: if result is True:
initialized = True initialized = True
return create_response(200, 'Successful operation; random number generator is ready and random numbers can be requested') 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') 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') return create_response(500, 'Unable to generate random numbers. Restart/Reset System')
else: else:
return create_response(555, 'Unable to initialize the random number generator within a timeout of 60 seconds') return create_response(555, 'Unable to initialize the random number generator within a timeout of 60 seconds')