fix: Fixed typos
This commit is contained in:
parent
1204ae8ce4
commit
bc39fd869f
2 changed files with 10 additions and 4 deletions
|
|
@ -366,7 +366,7 @@ class User(Document):
|
|||
if getattr(frappe.local, "login_manager", None):
|
||||
frappe.local.login_manager.logout(user=self.name)
|
||||
|
||||
frappe.db.delete("Todo", {"owner": self.name})
|
||||
frappe.db.delete("ToDo", {"owner": self.name})
|
||||
# frappe.db.sql("""DELETE FROM `tabToDo` WHERE `owner`=%s""", (self.name,))
|
||||
frappe.db.sql("""UPDATE `tabToDo` SET `assigned_by`=NULL WHERE `assigned_by`=%s""",
|
||||
(self.name,))
|
||||
|
|
|
|||
|
|
@ -966,9 +966,15 @@ class Database(object):
|
|||
), values, debug=debug)
|
||||
|
||||
else:
|
||||
return self.sql("DELETE FROM `tab{doctype}`".format(
|
||||
doctype=doctype
|
||||
), debug=debug)
|
||||
if doctype.startwith("__"):
|
||||
return self.sql("DELETE FROM `{doctype}`".format(
|
||||
doctype=doctype
|
||||
), debug=debug)
|
||||
|
||||
else:
|
||||
return self.sql("DELETE FROM `tab{doctype}`".format(
|
||||
doctype=doctype
|
||||
), debug=debug)
|
||||
|
||||
|
||||
def get_last_created(self, doctype):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue