def needs_formatting(self, result, formatted):
		if result and result[0]:
			for v in result[0]:
				if isinstance(v, (datetime.date, datetime.timedelta, datetime.datetime, long)):
					return True
				if formatted and isinstance(v, (int, float)):
					return True

		return False
I convert an AppVersion to an App
dataset/ETHPy150Open frappe/frappe/frappe/database.py/Database.needs_formatting--crossover with--dataset/ETHPy150Open OrbitzWorldwide/droned/droned/lib/droned/models/app.py/AdaptAppVersionToApp