Skip to content

Commit

Permalink
fix : get_input_standard function modified
Browse files Browse the repository at this point in the history
  • Loading branch information
sepandhaghighi committed Aug 7, 2024
1 parent 1ef3d37 commit 39a28b5
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions nafas/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(""))
Expand Down

0 comments on commit 39a28b5

Please sign in to comment.