feat: 完成三角色工作台及金租对公Skills全流程演示
This commit is contained in:
@@ -46,6 +46,8 @@ def execute(connection, sql, project_id, exact_decimals=False):
|
||||
max_rows = max(1, min(int(connection.get("max_rows", 1000)), 10000))
|
||||
if kind == "SQLite":
|
||||
root = os.getenv("XINGBANG_SQLITE_ROOT")
|
||||
if not root and connection.get("data_domain") == "demo":
|
||||
root = str(Path(__file__).resolve().parents[1] / "xingbang_data")
|
||||
if not root: raise ValueError("服务器未配置 XINGBANG_SQLITE_ROOT")
|
||||
file = Path(connection.get("database", "")).resolve()
|
||||
if not file.is_relative_to(Path(root).resolve()) or not file.is_file():
|
||||
|
||||
Reference in New Issue
Block a user