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