Skip to content

Commit 1238ced

Browse files
committed
resolve conflict
Signed-off-by: wiseaidev <[email protected]>
1 parent 42f870d commit 1238ced

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

aredis_om/model/model.py

+4-7
Original file line numberDiff line numberDiff line change
@@ -1195,15 +1195,12 @@ def to_string(s):
11951195
step = 2 # Because the result has content
11961196
offset = 1 # The first item is the count of total matches.
11971197

1198-
for i in xrange(1, len(res), step):
1199-
fields_offset = offset
1198+
for i in range(1, len(res), step):
12001199

12011200
fields = dict(
1202-
dict(
1203-
izip(
1204-
map(to_string, res[i + fields_offset][::2]),
1205-
map(to_string, res[i + fields_offset][1::2]),
1206-
)
1201+
zip(
1202+
map(to_string, res[i + offset][::2]),
1203+
map(to_string, res[i + offset][1::2]),
12071204
)
12081205
)
12091206

0 commit comments

Comments
 (0)