Archived
1
0
Fork 0

fixed wiki headers function issue

This commit is contained in:
yzhh 2021-09-12 00:12:44 +08:00
parent 58e5be55f2
commit 273832c057
2 changed files with 2 additions and 1 deletions

View file

@ -26,7 +26,7 @@ from .getinfobox import get_infobox_pic
recommend_modules='wiki_inline',
allowed_none=False)
async def wiki_wrapper(msg: MessageSession):
if msg.parsed_msg['set']:
if msg.parsed_msg['set'] and not msg.parsed_msg['headers']:
await set_start_wiki(msg)
elif msg.parsed_msg['iw']:
await interwiki(msg)

View file

@ -64,6 +64,7 @@ class WikiTargetInfo:
def config_headers(self, headers, let_it: [bool, None] = True):
try:
headers = json.loads(headers)
headers_ = json.loads(self.query.headers)
if let_it:
for x in headers: