summaryrefslogtreecommitdiff
path: root/ATRI/configs/models.py
diff options
context:
space:
mode:
author0w0 <[email protected]>2023-07-13 17:11:40 +0800
committerGitHub <[email protected]>2023-07-13 17:11:40 +0800
commitcae8dfa08f870e463259521803426d2b3d169918 (patch)
tree2baba4d36ec9abd5af218caef3b6abf751b737b1 /ATRI/configs/models.py
parent9d5e369b66e21eb9d26ac97602c166fa1bbbb0e5 (diff)
parent8ebd9311c8b3cd9bbf36c1508cedf5586e026670 (diff)
downloadATRI-cae8dfa08f870e463259521803426d2b3d169918.tar.gz
ATRI-cae8dfa08f870e463259521803426d2b3d169918.tar.bz2
ATRI-cae8dfa08f870e463259521803426d2b3d169918.zip
🔀 Merge pull request #92 from mute23-code/main
Fix: 当 `WithGoCQHTTP` 为 `False` 时报错的问题
Diffstat (limited to 'ATRI/configs/models.py')
-rw-r--r--ATRI/configs/models.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ATRI/configs/models.py b/ATRI/configs/models.py
index b3b29c9..f024828 100644
--- a/ATRI/configs/models.py
+++ b/ATRI/configs/models.py
@@ -1,4 +1,4 @@
-from typing import List
+from typing import List, Optional
from pydantic import BaseModel
@@ -24,7 +24,7 @@ class GoCQHTTPAccountList(BaseModel):
class WithGoCQHTTP(BaseModel):
enabled: bool
- accounts: List[GoCQHTTPAccountList]
+ accounts: Optional[List[GoCQHTTPAccountList]]
download_domain: str
download_version: str
gocq_webui_username: str
@@ -64,7 +64,7 @@ class RuntimeConfig(BaseModel):
command_start: set
command_sep: set
session_expire_timeout: int
- gocq_accounts: list
+ gocq_accounts: Optional[list]
gocq_download_domain: str
gocq_version: str
gocq_webui_username: str