Skip to content

Commit

Permalink
cli: fixes replace method
Browse files Browse the repository at this point in the history
 * Closes #2039.

Signed-off-by: Ioannis Tsanaktsidis <[email protected]>
  • Loading branch information
ioannistsanaktsidis committed Dec 7, 2017
1 parent 063e378 commit a08d60f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cernopendata/modules/fixtures/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def update_record(pid, schema, data):
"""Updates the given record."""
record = Record.get_record(pid.object_uuid)
record['$schema'] = schema
data.pop('files', None)
record.update(data)
record.commit()
return record
Expand Down

0 comments on commit a08d60f

Please sign in to comment.