fix: commit after each write
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
This commit is contained in:
parent
a81b8f4ba4
commit
380a67777a
1 changed files with 1 additions and 0 deletions
|
|
@ -6,3 +6,4 @@ def execute():
|
|||
for name, email in frappe.get_all("Email Group Member", fields=["name", "email"], as_list=True):
|
||||
if not validate_email_address(email, throw=False):
|
||||
frappe.db.set_value("Email Group Member", name, "unsubscribed", 1)
|
||||
frappe.db.commit()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue