Skip to content

Commit a08d60f

Browse files
cli: fixes replace method
* Closes #2039. Signed-off-by: Ioannis Tsanaktsidis <[email protected]>
1 parent 063e378 commit a08d60f

File tree

1 file changed

+1
-0
lines changed
  • cernopendata/modules/fixtures

1 file changed

+1
-0
lines changed

cernopendata/modules/fixtures/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def update_record(pid, schema, data):
105105
"""Updates the given record."""
106106
record = Record.get_record(pid.object_uuid)
107107
record['$schema'] = schema
108+
data.pop('files', None)
108109
record.update(data)
109110
record.commit()
110111
return record

0 commit comments

Comments
 (0)