Skip to content

Commit 1427574

Browse files
committed
move note
1 parent 756b73d commit 1427574

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ d == user_data_dict # True
126126
joe = DDB.at("users", key="Joe").read()
127127
joe == user_data_dict["Joe"] # True
128128
```
129+
130+
> Note: Doing a partial read like with `DDB.at("users", key="Joe").read()` will return
131+
> the value of the key at the outermost indentation level if the key appears in the
132+
> file multiple times.
133+
129134
It is also possible to only read a subset of keys based on a filter callback:
130135

131136
```python
@@ -135,11 +140,6 @@ above_1 = DDB.at("numbers", where=lambda k, v: v > 1).read()
135140
>>> above_1 == {"b", 2, "c": 3}
136141
```
137142

138-
> Note: Doing a partial read like with `DDB.at("users", key="Joe").read()` will return
139-
> the value of the key at the outermost indentation level if the key appears in the
140-
> file multiple times.
141-
142-
143143
Write dicts
144144
----------------------------------------------------------------------------------------
145145

0 commit comments

Comments
 (0)