예제 #1
0
	def add_unverified_company(self, data):
		"""
		Special case in which no co_uniq_name found, so we can't hit the LI API. Tries to create a stub company.
		Return: Entity || None

		"""
		if data["entity_name"] is not None:

			co = Entity()
			co.name = data["entity_name"]
			co.type = "organization"
			co.status = "unverified"
			co.save()
			return co

		else:
			return None