mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-11-22 08:08:04 +01:00
Fix generate basket
This commit is contained in:
parent
c1e2138a4a
commit
46aff0bd56
1 changed files with 2 additions and 1 deletions
|
@ -45,7 +45,8 @@ class Command(BaseCommand):
|
|||
items_in_basket = len(products)
|
||||
if items_in_basket < 1:
|
||||
items_in_basket = 1
|
||||
selected_products = np.random.Generator(
|
||||
rng = np.random.default_rng()
|
||||
selected_products = rng.choice(
|
||||
products,
|
||||
size=items_in_basket,
|
||||
replace=False,
|
||||
|
|
Loading…
Reference in a new issue