refactor: moved to frappe.qb in frappe.db.delete
This commit is contained in:
parent
f36808e4cc
commit
ae0c5ee291
1 changed files with 1 additions and 5 deletions
|
|
@ -989,11 +989,7 @@ class Database(object):
|
|||
query = self.query.build_conditions(table=doctype, filters=filters).delete()
|
||||
if "debug" not in kwargs:
|
||||
kwargs["debug"] = debug
|
||||
|
||||
if filters:
|
||||
conditions, values = self.build_conditions(filters)
|
||||
query = f"{query} WHERE {conditions}"
|
||||
|
||||
|
||||
return self.sql(query, values, **kwargs)
|
||||
|
||||
def truncate(self, doctype: str):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue