mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
Update data_source.py
This commit is contained in:
parent
6dbb4be824
commit
c14b13ee6c
@ -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 = []
|
||||
|
||||
Loading…
Reference in New Issue
Block a user