mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 07:08:18 +00:00
covid fix a bug
This commit is contained in:
parent
d3c75deb87
commit
d17e7c8662
5
covid.py
5
covid.py
@ -1,4 +1,4 @@
|
|||||||
# https://github.com/Zeta-qixi/nonebot-plugin-covid19-news
|
""" https://github.com/Zeta-qixi/nonebot-plugin-covid19-news """
|
||||||
|
|
||||||
import json
|
import json
|
||||||
from typing import Dict
|
from typing import Dict
|
||||||
@ -128,6 +128,7 @@ async def covid_info(context):
|
|||||||
return await context.edit("[covid] 无法获取城市名!")
|
return await context.edit("[covid] 无法获取城市名!")
|
||||||
city = NewsBot.data.get(city)
|
city = NewsBot.data.get(city)
|
||||||
if city:
|
if city:
|
||||||
await context.edit(f"{city.main_info}\n\n{await city.policy}")
|
policy = await city.policy
|
||||||
|
await context.edit(f"{city.main_info}\n\n{policy}")
|
||||||
else:
|
else:
|
||||||
await context.edit("[covid] 只限查询国内城市或你地理没学好。")
|
await context.edit("[covid] 只限查询国内城市或你地理没学好。")
|
||||||
|
Loading…
Reference in New Issue
Block a user