mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 08:39:59 +08:00
Update data_source.py
This commit is contained in:
@@ -79,6 +79,7 @@ async def get_setu_urls(
|
||||
",".join(tags),
|
||||
)
|
||||
)
|
||||
num = num if num < len(data) else len(data)
|
||||
random_idx = random.sample(range(len(data)), num)
|
||||
x_urls = []
|
||||
x_text_lst = []
|
||||
|
||||
Reference in New Issue
Block a user