Skip to content

Commit

Permalink
fix commencment date check
Browse files Browse the repository at this point in the history
  • Loading branch information
actlikewill committed May 24, 2024
1 parent 2efbc37 commit 787fba2
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["commencement_date"])
return bool(self.metadata_json.get("commencement_date", None))

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

0 comments on commit 787fba2

Please sign in to comment.