Skip to content

Commit

Permalink
update reading of 'load_from' and 'data_key'
Browse files Browse the repository at this point in the history
  • Loading branch information
rekt-hard committed Feb 21, 2022
1 parent 058578f commit 7b74172
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions invenio_oaiserver/verbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def validate(self, data, **kwargs):
data['from_'] > data['until']:
raise ValidationError('Date "from" must be before "until".')
extra = set(request.values.keys()) - set([
getattr(f, 'load_from', None) or getattr(
f, 'data_key', None) or f.name for f in self.fields.values()
f.metadata.get('load_from', None) or f.metadata
.get('data_key', None) or f.name for f in self.fields.values()
])
if extra:
raise ValidationError('You have passed too many arguments.')
Expand Down

0 comments on commit 7b74172

Please sign in to comment.