mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 23:52:57 +00:00
[minor] fixed patch
This commit is contained in:
@@ -6,6 +6,7 @@ def execute():
|
||||
|
||||
for question in webnotes.conn.sql("""select * from tabQuestion""", as_dict=True):
|
||||
if question.question:
|
||||
try:
|
||||
name = question.question[:180]
|
||||
if webnotes.conn.exists("Note", name):
|
||||
webnotes.delete_doc("Note", name)
|
||||
@@ -18,6 +19,8 @@ def execute():
|
||||
"creation": question.creation,
|
||||
"public": 1
|
||||
}).insert()
|
||||
except NameError:
|
||||
pass
|
||||
|
||||
webnotes.delete_doc("DocType", "Question")
|
||||
webnotes.delete_doc("DocType", "Answer")
|
||||
|
||||
Reference in New Issue
Block a user