DEPRECATED: CSV write operations no longer supported. All data is now stored in SQLite database. Use db.upsert_host() to write host data. This method is kept for backward compatibility but does nothing.
(self, data)
| 1947 | |
| 1948 | def set_latest_scan_results(self, scan_data): |
| 1949 | """Store fresh scan results scoped to the currently active network.""" |
| 1950 | slug = self._slug_for_ssid(self.active_network_ssid) |
| 1951 | with self._scan_results_lock: |
| 1952 | self._latest_scan_results[slug] = { |
| 1953 | 'data': scan_data, |
| 1954 | 'timestamp': time.time(), |
| 1955 | 'ssid': self.active_network_ssid, |
| 1956 | } |
| 1957 | logger.info( |
| 1958 | f"📋 Stored {len(scan_data or []) if scan_data else 0} hosts for network slug '{slug}'" |
| 1959 | ) |
| 1960 | |
| 1961 | def get_latest_scan_results(self, ssid=None): |
no test coverage detected