Update lookup_api.py
This commit is contained in:
parent
095ed8f244
commit
e44f591f71
1 changed files with 3 additions and 2 deletions
|
|
@ -72,8 +72,9 @@ def nested_update(document, key, value, in_place=False, treat_as_element=True):
|
|||
|
||||
def _nested_update(document, key, value):
|
||||
"""
|
||||
Method to update a key->value pair in a nested document. If values count less than
|
||||
keys count, then uses last value as default.
|
||||
Method to update a key->value pair in a nested document.
|
||||
If the number of passed values is less than the number of key matches
|
||||
when scanning for updates, use last value as default.
|
||||
Args:
|
||||
document: Might be List of Dicts (or) Dict of Lists (or)
|
||||
Dict of List of Dicts etc...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue