Merge pull request #15362 from gavindsouza/agg-patch-fix-0
fix: Escape matching pattern for substitution
This commit is contained in:
commit
34d343bc06
1 changed files with 1 additions and 1 deletions
|
|
@ -27,6 +27,6 @@ def execute():
|
|||
name, script = server_script["name"], server_script["script"]
|
||||
|
||||
for agg in ["avg", "max", "min", "sum"]:
|
||||
script = re.sub(f"frappe.db.{agg}(", f"frappe.qb.{agg}(", script)
|
||||
script = re.sub(f"frappe.db.{agg}\(", f"frappe.qb.{agg}(", script)
|
||||
|
||||
frappe.db.update("Server Script", name, "script", script)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue