def update_single(f, new):
 frappe.db.begin()
 frappe.db.sql(u'update tabSingles set field=%s where doctype=%s and field=%s', (new, f[u'parent'], f[u'fieldname']))
 frappe.db.commit()

def update_single ( f , new ) : frappe . db . begin ( ) frappe . db . sql ( u'update tabSingles set field=%s where doctype=%s and field=%s' , ( new , f [ u'parent' ] , f [ u'fieldname' ] ) ) frappe . db . commit ( )
update in tabsingles .