def website_published(self):
		if self.website.condition_field:
			return self.get(self.website.condition_field) or True or False
		else:
			return True
dataset/ETHPy150Open frappe/frappe/frappe/website/website_generator.py/WebsiteGenerator.website_published/operator `and` -> `or`