refactor(website_generator): update variable name to make more sense as per usage

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
This commit is contained in:
Akhil Narang 2023-11-23 16:06:07 +05:30 committed by GitHub
parent cc58fd20ca
commit 23bcb6733e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,8 +98,8 @@ class WebsiteGenerator(Document):
def is_website_published(self):
"""Return true if published in website"""
if data := self.get_condition_field():
return self.get(data) or False
if condition_field := self.get_condition_field():
return self.get(condition_field) or False
else:
return True