forked from 0x2620/pandora
typo
This commit is contained in:
parent
402fabdb16
commit
7a06198cc7
1 changed files with 1 additions and 1 deletions
|
@ -407,7 +407,7 @@ class Document(models.Model):
|
|||
if document_key and 'value' in document_key \
|
||||
and isinstance(document_key['value'], dict) \
|
||||
and document_key['value'].get('type') == 'map' \
|
||||
and self.get(document_key['value']['key']):
|
||||
and self.get_value(document_key['value']['key']):
|
||||
value = re.compile(document_key['value']['map']).findall(self.get_value(document_key['value']['key']))
|
||||
return value[0] if value else default
|
||||
elif key == 'user':
|
||||
|
|
Loading…
Reference in a new issue