Skip to content

Commit

Permalink
Avoid overriding built in copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
sohkai committed Oct 5, 2016
1 parent fed4692 commit b7dbb8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/views/manifestations.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ def post(self):
copyright_holder['verifying_key'] = copyright_holder.pop('verifyingKey')
copyright_holder['signing_key'] = copyright_holder.pop('signingKey')

copyright, manifestation, work = coalaip.register_manifestation(
copyright_, manifestation, work = coalaip.register_manifestation(
manifestation_data=manifestation,
copyright_holder=copyright_holder,
work_data=work)

# Add the appropraite @id to the JSON-LD
res = {}
for (entity, id_template, key) in [
(copyright, '../right/{}', 'copyright'),
(copyright_, '../right/{}', 'copyright'),
(manifestation, '{}', 'manifestation'),
(work, '../work/{}', 'work')]:
ld_data = entity.to_jsonld()
Expand Down

0 comments on commit b7dbb8a

Please sign in to comment.