mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 00:44:45 +00:00
[fix] allow lot of queries in update comments patch
This commit is contained in:
@@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
import webnotes
|
import webnotes
|
||||||
|
webnotes.conn.auto_commit_on_many_writes = True
|
||||||
for name in webnotes.conn.sql_list("""select name from tabComment"""):
|
for name in webnotes.conn.sql_list("""select name from tabComment"""):
|
||||||
webnotes.get_obj("Comment", name).update_comment_in_doc()
|
webnotes.get_obj("Comment", name).update_comment_in_doc()
|
||||||
|
webnotes.conn.auto_commit_on_many_writes = False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user