Skip to content

Commit

Permalink
fix #43
Browse files Browse the repository at this point in the history
  • Loading branch information
lgc2333 authored Mar 17, 2024
1 parent fbe5222 commit 6b3ea11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nonebot_plugin_picstatus/templates/default/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ class TemplateConfig(BaseModel):
ps_default_additional_css: List[str] = []
ps_default_additional_script: List[str] = []

@field_validator("ps_additional_css")
@field_validator("ps_default_additional_css")
def resolve_css_url(cls, v: List[str]): # noqa: N805
return [resolve_file_url(x, {"default/res/css": CSS_PATH}) for x in v]

@field_validator("ps_additional_script")
@field_validator("ps_default_additional_script")
def resolve_script_url(cls, v: List[str]): # noqa: N805
return [resolve_file_url(x) for x in v]

Expand Down

0 comments on commit 6b3ea11

Please sign in to comment.