From 390e2881071a776b413282baa3a0d4ef9f53590d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 8 May 2026 15:47:24 +0800 Subject: [PATCH] fix: replace uuid.uuid4() with getID() from appPublic.uniqueID for all table ID generation --- unified_dashboard/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unified_dashboard/core.py b/unified_dashboard/core.py index b9c73d9..bd23dcb 100644 --- a/unified_dashboard/core.py +++ b/unified_dashboard/core.py @@ -2,6 +2,7 @@ from ahserver.serverenv import ServerEnv from appPublic.worker import awaitify import json import uuid +from appPublic.uniqueID import getID from datetime import datetime class DashboardCore: @@ -17,7 +18,7 @@ class DashboardCore: if not dashboard_config: # 创建默认配置 config_json = self._get_default_dashboard_config(dashboard_type) - dashboard_id = str(uuid.uuid4()).replace('-', '') + dashboard_id = getID() await self.db.insert('dashboard_config', { 'id': dashboard_id, 'dashboard_name': f'默认{dashboard_type}仪表板',