重构共享逻辑并修复值班提醒回执去重

This commit is contained in:
2026-11-22 14:32:13 +08:00
parent 2fb2c5e1ad
commit 982f0df41c
35 changed files with 2345 additions and 571 deletions
+8
View File
@@ -0,0 +1,8 @@
"""CSV 导出的通用安全处理。"""
def csv_safe_value(value):
"""防止电子表格将文本解释成公式。"""
if isinstance(value, str) and value.lstrip().startswith(('=', '+', '-', '@', '\t', '\r')):
return "'" + value
return value