mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
🐛 修复使用本地数据库中的色图时返回的数量不正确
This commit is contained in:
parent
4d6013ca02
commit
990622bf95
@ -99,6 +99,7 @@ class SetuManage:
|
||||
if num > len(data_list):
|
||||
num = len(data_list)
|
||||
flag = True
|
||||
data_list = random.sample(data_list, num)
|
||||
for setu in data_list:
|
||||
file = await cls.get_image(setu)
|
||||
if isinstance(file, str):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user