fixed wiki headers function issue
This commit is contained in:
parent
58e5be55f2
commit
273832c057
2 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
|
Reference in a new issue