Skip to content

Commit

Permalink
fix : minor bug in filter_generate_mode function fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sepandhaghighi committed Dec 2, 2024
1 parent 629fe2f commit c8fea24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samila/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def filter_generate_mode(generate_mode):
generate_mode_value = generate_mode.value
if generate_mode_value == "random":
generate_mode_list = list(GenerateMode)
generate_mode.remove(GenerateMode.RANDOM)
generate_mode_list.remove(GenerateMode.RANDOM)
generate_mode_value = random.choice(generate_mode_list).value
return generate_mode_value
return None
Expand Down

0 comments on commit c8fea24

Please sign in to comment.