Update public source
This commit is contained in:
+14
-3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user