提升暴雨产图效率

This commit is contained in:
wzy-warehouse
2026-06-21 14:52:23 +08:00
parent 5169ed2f33
commit 3e0f5a94cb
47 changed files with 513 additions and 188 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ class TemplateModifier:
tmp.close()
datasource_re = re.compile(r"(<datasource>)(.*?)(</datasource>)", re.DOTALL)
table_re = re.compile(r'table="(\w+)"\."(\w+)"')
table_re = re.compile(r'table=(?:"|&quot;)(\w+)(?:"|&quot;)\.(?:"|&quot;)(\w+)(?:"|&quot;)')
with zipfile.ZipFile(template_path, "r") as zin, \
zipfile.ZipFile(tmp_path, "w", zipfile.ZIP_DEFLATED) as zout: