mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-09-05 07:28:04 +08:00
fix: 安全地移除配置项
This commit is contained in:
+3
-1
@@ -2,13 +2,15 @@ from dataclasses import dataclass, field, fields
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Self
|
from typing import Self
|
||||||
|
|
||||||
from dataclasses_json import DataClassJsonMixin
|
from dataclasses_json import DataClassJsonMixin, Undefined
|
||||||
|
|
||||||
from constants import DEFAULT_CONFIG_PATH
|
from constants import DEFAULT_CONFIG_PATH
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class Config(DataClassJsonMixin):
|
class Config(DataClassJsonMixin):
|
||||||
|
dataclass_json_config = {"undefined": Undefined.EXCLUDE}
|
||||||
|
|
||||||
sessdata: str = ""
|
sessdata: str = ""
|
||||||
bili_jct: str = ""
|
bili_jct: str = ""
|
||||||
buvid3: str = ""
|
buvid3: str = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user