From d17e7c8662c1c96082e31572b68bd7c8ae3586c0 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sun, 16 Jan 2022 13:34:03 +0800 Subject: [PATCH] covid fix a bug --- covid.py | 5 +++-- list.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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",