Browse Source

Merge pull request #15362 from gavindsouza/agg-patch-fix-0

fix: Escape matching pattern for substitution
version-14
gavin 3 years ago
committed by GitHub
parent
commit
34d343bc06
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/patches/v14_0/remove_db_aggregation.py

+ 1
- 1
frappe/patches/v14_0/remove_db_aggregation.py View File

@@ -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…
Cancel
Save