diff --git a/covid.py b/covid.py index 364a7f8..3710116 100644 --- a/covid.py +++ b/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 from typing import Dict @@ -128,6 +128,7 @@ async def covid_info(context): return await context.edit("[covid] 无法获取城市名!") city = NewsBot.data.get(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: await context.edit("[covid] 只限查询国内城市或你地理没学好。") diff --git a/list.json b/list.json index ea20064..069977b 100644 --- a/list.json +++ b/list.json @@ -792,7 +792,7 @@ }, { "name": "covid", - "version": "1.0", + "version": "1.001", "section": "daily", "maintainer": "xtaodada", "size": "3.50 kb",