Archived
1
0
Fork 0

Update wiki.py

This commit is contained in:
多羅狼 2023-07-09 12:36:39 +08:00 committed by GitHub
parent ec3367b9af
commit be4505d298
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -157,7 +157,7 @@ async def query_pages(session: Union[Bot.MessageSession, QueryInfo], title: Unio
try:
tasks = []
for rd in ready_for_query_pages:
if rd in ['随机页面', '隨機頁面', 'Randompage']:
if rd.split(":")[0] in ['Special', '特殊'] and rd.split(":")[1] in ['随机页面', '隨機頁面', 'Random']:
tasks.append(asyncio.create_task(
WikiLib(q, headers, locale=session.locale.locale).random_page()))
else: