Skip to content

Add object detection, tracking, mobile notifications, and search to any security camera.

rename vars

roryclearb9f462733b92
diff --git a/clearcam.py b/clearcam.py
index 2a538f4..66de2e0 100644
--- a/clearcam.py
+++ b/clearcam.py
@@ -1132,8 +1132,8 @@ class HLSRequestHandler(BaseHTTPRequestHandler):
name_contains = data.get("name_contains")
image_text = data.get("image_text")
similar_img = data.get("similar_img")
- offset = data.get("offset")
- limit = data.get("limit")
+ start = data.get("start")
+ count = data.get("count")
uploaded_image = data.get("uploaded_image")
if uploaded_image:
if ',' in uploaded_image: uploaded_image = uploaded_image.split(',')[1]
@@ -1195,7 +1195,7 @@ class HLSRequestHandler(BaseHTTPRequestHandler):
})
image_data.sort(key=lambda x: x["timestamp"], reverse=True)
- if offset is not None and limit is not None: image_data = image_data[offset:offset+limit]
+ if start is not None and count is not None: image_data = image_data[start:start+count]
response_data = {
"images": image_data,