From a868646e9882adc0910df5ebcd98706419245c69 Mon Sep 17 00:00:00 2001 From: Syed Sajjad Hussain Shah <52817156+syedsajjadkazmii@users.noreply.github.com> Date: Wed, 24 Aug 2022 12:21:32 +0500 Subject: [PATCH] fix: number of usersuggestions sometimes less than 3 [VAN-1023] (#30875) --- openedx/core/djangoapps/user_authn/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/user_authn/utils.py b/openedx/core/djangoapps/user_authn/utils.py index 5cacd71edb..490223eaec 100644 --- a/openedx/core/djangoapps/user_authn/utils.py +++ b/openedx/core/djangoapps/user_authn/utils.py @@ -95,7 +95,8 @@ def generate_username_suggestions(name): {'min': 0, 'max': 9}, {'min': 10, 'max': 99}, {'min': 100, 'max': 999}, - {'min': 1000, 'max': 99999}, + {'min': 1000, 'max': 9999}, + {'min': 10000, 'max': 99999}, ] for int_range in int_ranges: for _ in range(10):