Update public source

This commit is contained in:
2026-11-12 14:38:22 +03:00
parent c1a2b960e7
commit 6fa7b772e6
+14 -3
View File
@@ -1323,7 +1323,7 @@ class VendorService:
"unchanged": 0
}
rows = wifi_conn.execute(
rows_cursor = wifi_conn.execute(
"""
SELECT
id,
@@ -1332,7 +1332,18 @@ class VendorService:
FROM access_points
ORDER BY id
"""
).fetchall()
)
def iter_rows():
while True:
batch = rows_cursor.fetchmany(1000)
if not batch:
break
yield from batch
placeholders = (
None,
@@ -1351,7 +1362,7 @@ class VendorService:
total // 100
)
for ap_id, bssid, current_vendor in rows:
for ap_id, bssid, current_vendor in iter_rows():
stats["checked"] += 1