feat:新增演示
This commit is contained in:
@@ -133,6 +133,13 @@ class Settings:
|
||||
)
|
||||
)
|
||||
|
||||
# 演示账号的用户 ID:未登录访问时展示这个账号下的大屏,不配置则没有演示数据
|
||||
demo_owner_id: int | None = field(
|
||||
default_factory=lambda: (
|
||||
int(value) if (value := os.getenv("DEMO_OWNER_ID", "").strip()) else None
|
||||
)
|
||||
)
|
||||
|
||||
# 模型写的单条数据查询的超时(秒)
|
||||
data_query_timeout: float = field(
|
||||
default_factory=lambda: float(os.getenv("DATA_QUERY_TIMEOUT", "10"))
|
||||
|
||||
Reference in New Issue
Block a user