Skip to content

Commit ed78199

Browse files
DOC-5821 reordered steps in example to match notebook
1 parent ed45c0c commit ed78199

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

local_examples/client-specific/redis-py/home_json.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
import redis.exceptions
1616
# STEP_END
1717

18-
# STEP_START connect
19-
r = redis.Redis(decode_responses=True)
20-
# STEP_END
21-
2218
# STEP_START create_data
2319
user1 = {
2420
"name": "Paul John",
@@ -42,6 +38,10 @@
4238
}
4339
# STEP_END
4440

41+
# STEP_START connect
42+
r = redis.Redis(decode_responses=True)
43+
# STEP_END
44+
4545
# STEP_START cleanup_json
4646
try:
4747
r.ft("idx:users").dropindex(True)

0 commit comments

Comments
 (0)