Skip to content

Commit 582efc3

Browse files
committed
fixed an error while using cursor in aggregate
1 parent d34b6c2 commit 582efc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redisearch/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def aggregate(self, query):
453453
else:
454454
cursor = None
455455

456-
if query._with_schema:
456+
if isinstance(query, AggregateRequest) and query._with_schema:
457457
schema = raw[0]
458458
rows = raw[2:]
459459
else:

0 commit comments

Comments
 (0)