Skip to content

Commit

Permalink
Merge pull request #184 from mashehu/fix-creativeworkstatus-capitaliz…
Browse files Browse the repository at this point in the history
…ation

CreativeWorkStatus -> creativeWorkStatus
  • Loading branch information
simleo authored Aug 2, 2024
2 parents a70891b + 4c23d62 commit d31f202
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions rocrate/rocrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,12 @@ def image(self, value):
self.root_dataset['image'] = value

@property
def CreativeWorkStatus(self):
return self.root_dataset.get('CreativeWorkStatus')
def creativeWorkStatus(self):
return self.root_dataset.get('creativeWorkStatus')

@CreativeWorkStatus.setter
def CreativeWorkStatus(self, value):
self.root_dataset['CreativeWorkStatus'] = value
@creativeWorkStatus.setter
def creativeWorkStatus(self, value):
self.root_dataset['creativeWorkStatus'] = value

@property
def mainEntity(self):
Expand Down
6 changes: 3 additions & 3 deletions rocrate/templates/preview_template.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@
<dd>{{ crate.datePublished }}</dd>
{%endif %}

{% if crate.CreativeWorkStatus %}
<dt>CreativeWorkStatus</dt>
<dd>{{ crate.CreativeWorkStatus }}</dd>
{% if crate.creativeWorkStatus %}
<dt>creativeWorkStatus</dt>
<dd>{{ crate.creativeWorkStatus }}</dd>
{%endif %}
</dl>

Expand Down

0 comments on commit d31f202

Please sign in to comment.