🐛修复依赖

This commit is contained in:
2024-07-11 12:27:23 +00:00
parent 7809ef0c50
commit fdf101f777
5 changed files with 6 additions and 10 deletions

View File

@ -1,6 +1,5 @@
import json
import requests
from jinja2 import Template
CITY_API_ROOT="https://show.bilibili.com/api/ticket/city/list?channel=3"
SHOWS_API_ROOT="https://show.bilibili.com/api/ticket/project/listV2"
HEADERS = {
@ -92,7 +91,4 @@ def process_shows_data_to_template(shows_data: dict):
"image_url": cover
})
showlist.append(dicts)
return showlist
template = Template(show_template)
rendered = template.render(exhibitions=showlist)
return rendered
return showlist

View File

@ -2,7 +2,7 @@ from nonebot.adapters.onebot.v11 import MessageSegment
from nonebot.typing import T_State
from typing import Optional
from .acgnapis import *
from nonebot_plugin_htmlrender import text_to_pic, template_to_pic
from nonebot_plugin_htmlrender import template_to_pic
from nonebot_plugin_alconna import on_alconna
from arclet.alconna import Alconna, Args
from .config import RES_PATH, TEMPLATE_NAME, config

View File

@ -1,3 +0,0 @@
from nonebot.adapters.onebot import v11, v12
from nonebot.adapters import satori
T_MessageEvent = v11.MessageEvent | v12.MessageEvent | satori.MessageEvent