Another attempt at correcting formatting of README.rst
This commit is contained in:
parent
ef45cadb16
commit
ffa9dc454f
1 changed files with 11 additions and 11 deletions
22
README.rst
22
README.rst
|
|
@ -53,25 +53,25 @@ For example:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
from nested_lookup import nested_lookup
|
from nested_lookup import nested_lookup
|
||||||
|
|
||||||
my_document = {
|
my_document = {
|
||||||
'name' : 'Russell Ballestrini',
|
'name' : 'Russell Ballestrini',
|
||||||
'email_address' : 'test1@example.com',
|
'email_address' : 'test1@example.com',
|
||||||
'other' : {
|
'other' : {
|
||||||
'secondary_email' : 'test2@example.com',
|
'secondary_email' : 'test2@example.com',
|
||||||
'EMAIL_RECOVERY' : 'test3@example.com',
|
'EMAIL_RECOVERY' : 'test3@example.com',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
results = nested_lookup(
|
results = nested_lookup(
|
||||||
key = 'mail',
|
key = 'mail',
|
||||||
document = my_document,
|
document = my_document,
|
||||||
wild = True
|
wild = True
|
||||||
)
|
)
|
||||||
|
|
||||||
print(results)
|
print(results)
|
||||||
['test1@example.com', 'test2@example.com', 'test3@example.com']
|
['test1@example.com', 'test2@example.com', 'test3@example.com']
|
||||||
|
|
||||||
|
|
||||||
output
|
output
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue