1
0
Fork 0
mirror of synced 2024-04-27 09:12:22 +12:00

random.shuffle modifies in place...

This commit is contained in:
Dan Hess 2021-04-12 15:50:14 -08:00
parent f8d03bdbc3
commit 9f2c9ba158

View file

@ -165,8 +165,9 @@ query ($name: String) {
if pack > len(packs) or pack < 1:
return await ctx.send(f"The JLPT {level} has {len(packs)} packs available")
pack = packs[pack - 1]
await FlashCardDisplay(random.shuffle(pack.copy())).start(ctx, wait=True)
pack = packs[pack - 1].copy()
random.shuffle(pack)
await FlashCardDisplay(pack).start(ctx, wait=True)
def setup(bot):