def get_single_value(self, doctype, fieldname, cache=False):
		value = self.value_cache.setdefault(doctype, {}).get(fieldname)
		if value:
			return value

		val = self.sql("""select value from
			tabSingles where doctype=%s and field=%s""", (doctype, fieldname))
		val = val[0][0] if val else None

		if val=="0" or val=="1":
			# check type
			val = int(val)

		self.value_cache[doctype][fieldname] = val

		return val
DEPRECATED
dataset/ETHPy150Open frappe/frappe/frappe/database.py/Database.get_single_value--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/_internal/graphy/common.py/BaseChart.AddSeries