def update_single(self, d):
		frappe.db.sql("""delete from tabSingles where doctype=%s""", self.doctype)
		for field, value in d.iteritems():
			if field != "doctype":
				frappe.db.sql("""insert into tabSingles(doctype, field, value)
					values (%s, %s, %s)""", (self.doctype, field, value))

		if self.doctype in frappe.db.value_cache:
			del frappe.db.value_cache[self.doctype]
Adds the given worker to the deployment.
dataset/ETHPy150Open frappe/frappe/frappe/model/document.py/Document.update_single--crossover with--dataset/ETHPy150Open cloudControl/cctrl/cctrl/app.py/AppController.addCron