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:
parent
cc58fd20ca
commit
23bcb6733e
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue