random.shuffle modifies in place...
This commit is contained in:
parent
f8d03bdbc3
commit
9f2c9ba158
|
@ -165,8 +165,9 @@ query ($name: String) {
|
||||||
if pack > len(packs) or pack < 1:
|
if pack > len(packs) or pack < 1:
|
||||||
return await ctx.send(f"The JLPT {level} has {len(packs)} packs available")
|
return await ctx.send(f"The JLPT {level} has {len(packs)} packs available")
|
||||||
|
|
||||||
pack = packs[pack - 1]
|
pack = packs[pack - 1].copy()
|
||||||
await FlashCardDisplay(random.shuffle(pack.copy())).start(ctx, wait=True)
|
random.shuffle(pack)
|
||||||
|
await FlashCardDisplay(pack).start(ctx, wait=True)
|
||||||
|
|
||||||
|
|
||||||
def setup(bot):
|
def setup(bot):
|
||||||
|
|
Loading…
Reference in a new issue