Update public source

This commit is contained in:
2026-11-12 20:01:56 +03:00
parent 9e35491e3c
commit c892a96064
2 changed files with 74 additions and 19 deletions
+35 -1
View File
@@ -1331,13 +1331,47 @@ class VendorService:
def iter_rows():
last_id = None
while True:
batch = rows_cursor.fetchmany(1000)
if last_id is None:
batch = wifi_conn.execute(
"""
SELECT
id,
bssid,
vendor
FROM access_points
ORDER BY id
LIMIT 1000
"""
).fetchall()
else:
batch = wifi_conn.execute(
"""
SELECT
id,
bssid,
vendor
FROM access_points
WHERE id > ?
ORDER BY id
LIMIT 1000
""",
(
last_id,
)
).fetchall()
if not batch:
break
last_id = batch[-1][0]
yield from batch
placeholders = (