fix: lint
This commit is contained in:
parent
80e64c7143
commit
edfa63a4cf
1 changed files with 2 additions and 5 deletions
|
|
@ -10,6 +10,7 @@ import traceback
|
|||
from contextlib import contextmanager
|
||||
from time import time
|
||||
|
||||
from pypika.dialects import MySQLQueryBuilder, PostgreSQLQueryBuilder
|
||||
from pypika.terms import Criterion, NullValue
|
||||
|
||||
import frappe
|
||||
|
|
@ -30,8 +31,6 @@ from frappe.query_builder.functions import Count
|
|||
from frappe.query_builder.utils import DocType
|
||||
from frappe.utils import cast as cast_fieldtype
|
||||
from frappe.utils import get_datetime, get_table_name, getdate, now, sbool
|
||||
from pypika.dialects import MySQLQueryBuilder, PostgreSQLQueryBuilder
|
||||
|
||||
|
||||
IFNULL_PATTERN = re.compile(r"ifnull\(", flags=re.IGNORECASE)
|
||||
INDEX_PATTERN = re.compile(r"\s*\([^)]+\)\s*")
|
||||
|
|
@ -178,9 +177,7 @@ class Database:
|
|||
|
||||
"""
|
||||
if isinstance(query, (MySQLQueryBuilder, PostgreSQLQueryBuilder)):
|
||||
frappe.errprint(
|
||||
"Use run method to execute SQL queries generated by Query Engine"
|
||||
)
|
||||
frappe.errprint("Use run method to execute SQL queries generated by Query Engine")
|
||||
|
||||
debug = debug or getattr(self, "debug", False)
|
||||
query = str(query)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue