style: normalize code formatting across the codebase
- Standardize quote style (single to double quotes) - Improve code formatting consistency - Apply formatting to utilities, GUI components, and tools - Update imports and docstrings for consistency Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
待删除物料查询组件
|
||||
从数据库查询指定负责人需要删除的物料名称
|
||||
"""
|
||||
|
||||
from typing import List, Dict, Any
|
||||
from db.connection import get_connection
|
||||
|
||||
@@ -25,7 +26,7 @@ def get_materials_to_delete(manager_name):
|
||||
with get_connection() as conn:
|
||||
results = conn.execute_query(query, (manager_name,))
|
||||
# 提取物料名称并去除空值
|
||||
material_names = [row['MaterialName'] for row in results if row['MaterialName']]
|
||||
material_names = [row["MaterialName"] for row in results if row["MaterialName"]]
|
||||
return material_names
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user