Skip to content

Commit

Permalink
uses commenced boolean in propery
Browse files Browse the repository at this point in the history
Co-authored-by: Greg Kempe <[email protected]>
  • Loading branch information
actlikewill and longhotsummer authored May 24, 2024
1 parent 1bad887 commit 1664713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peachjam/models/generic_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def search_penalty(self):

@property
def commenced(self):
return bool(self.metadata_json.get("commencement_date", None))
return self.metadata_json.get("commenced", None)

def apply_labels(self):
labels = list(self.labels.all())
Expand Down

0 comments on commit 1664713

Please sign in to comment.