Update handler.py
Browse filesquery -> self.query
- handler.py +1 -1
handler.py
CHANGED
@@ -164,7 +164,7 @@ class EndpointHandler:
|
|
164 |
start_index=int(start_index)
|
165 |
limit_count=int(limit_count)
|
166 |
logger.info(f"Start index: {start_index}, Limit count: {limit_count}")
|
167 |
-
data = list(self.collection.find(query).skip(start_index).limit(limit_count))
|
168 |
start_time=time.time()
|
169 |
for document in data:
|
170 |
try:
|
|
|
164 |
start_index=int(start_index)
|
165 |
limit_count=int(limit_count)
|
166 |
logger.info(f"Start index: {start_index}, Limit count: {limit_count}")
|
167 |
+
data = list(self.collection.find(self.query).skip(start_index).limit(limit_count))
|
168 |
start_time=time.time()
|
169 |
for document in data:
|
170 |
try:
|