Skip to content

Commit

Permalink
🩹 修改 redirect_uri 配置的类型为 str
Browse files Browse the repository at this point in the history
  • Loading branch information
KomoriDev committed Jul 29, 2024
1 parent d997ad3 commit 3f26f81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nonebot_plugin_wakatime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

client_id = wakatime_config.client_id
client_secret = wakatime_config.client_secret
redirect_uri = wakatime_config.redirect_uri[0]
redirect_uri = wakatime_config.redirect_uri

if client_id == "" or client_secret == "" or redirect_uri == "":
logger.warning("缺失必要配置项,已禁用该插件")
Expand Down
2 changes: 1 addition & 1 deletion nonebot_plugin_wakatime/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ScopedConfig(BaseModel):
"""Your App ID from https://wakatime.com/apps"""
client_secret: str = ""
"""Your App Secret from https://wakatime.com/apps"""
redirect_uri: str | list[str] = ""
redirect_uri: str = ""
"""Authorized Redirect URI in https://wakatime.com/apps"""
api_url: str = "https://wakatime.com/api/v1"
"""wakatime api"""
Expand Down

0 comments on commit 3f26f81

Please sign in to comment.