From 39a28b519c1492a56925e8ce158dec19f5f8c5dd Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Wed, 7 Aug 2024 16:23:23 +0430 Subject: [PATCH] fix : get_input_standard function modified --- nafas/functions.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/nafas/functions.py b/nafas/functions.py index acab402..d51ea78 100644 --- a/nafas/functions.py +++ b/nafas/functions.py @@ -212,19 +212,10 @@ def get_input_standard(input_func=input): for i in sorted_list: if item == "program": program_name = STANDARD_MENU[item][i] - program_average_time = time_average_calc( - PROGRAMS[program_name]) - print( - str(i) + - "- " + - program_name + - " (~ " + - time_convert( - program_average_time, - True) + - ")") + program_average_time = time_average_calc(PROGRAMS[program_name]) + print("{0}- {1} (~ {2})".format(i, program_name, time_convert(program_average_time, True))) else: - print(str(i) + "- " + STANDARD_MENU[item][i]) + print("{0}- {1}".format(i, STANDARD_MENU[item][i])) while not exit_flag: try: input_data[item] = int(input_func(""))