We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42f870d commit 1238cedCopy full SHA for 1238ced
aredis_om/model/model.py
@@ -1195,15 +1195,12 @@ def to_string(s):
1195
step = 2 # Because the result has content
1196
offset = 1 # The first item is the count of total matches.
1197
1198
- for i in xrange(1, len(res), step):
1199
- fields_offset = offset
+ for i in range(1, len(res), step):
1200
1201
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
- )
+ zip(
+ map(to_string, res[i + offset][::2]),
+ map(to_string, res[i + offset][1::2]),
1207
)
1208
1209
0 commit comments