From ddafbb613b14b72fa4dbed485d6f5fe7fc190f25 Mon Sep 17 00:00:00 2001 From: WildSoft Date: Thu, 19 Nov 2026 02:20:29 +0300 Subject: [PATCH] Update public source --- gui/app.py | 28 ++++++++++++++-------------- reports/main.py | 1 - src/parser.py | 2 +- src/session.py | 1 - src/wifitrip.py | 1 - 5 files changed, 15 insertions(+), 18 deletions(-) diff --git a/gui/app.py b/gui/app.py index fcdeeaf..9c7e5f3 100644 --- a/gui/app.py +++ b/gui/app.py @@ -3252,15 +3252,15 @@ def api_network_wifi_connect(): "/api/wifi/channels" ) def api_wifi_channels(): - + interface = request.args.get( "interface", "" ).strip() - - + + if not interface: - + return jsonify( { "2.4": [], @@ -3269,15 +3269,15 @@ def api_wifi_channels(): "error": "WiFi interface was not selected." } ), 400 - - + + interfaces, interface_error = ( get_wifi_interfaces() ) - - + + if interface_error: - + return jsonify( { "2.4": [], @@ -3286,10 +3286,10 @@ def api_wifi_channels(): "error": interface_error } ), 500 - - + + if interface not in interfaces: - + return jsonify( { "2.4": [], @@ -3298,8 +3298,8 @@ def api_wifi_channels(): "error": "Invalid WiFi interface." } ), 400 - - + + return jsonify( get_wifi_channels(interface) ) diff --git a/reports/main.py b/reports/main.py index 46c1664..9192052 100644 --- a/reports/main.py +++ b/reports/main.py @@ -253,4 +253,3 @@ def main(): if __name__ == "__main__": main() - diff --git a/src/parser.py b/src/parser.py index 38ae1b5..f15e1e3 100644 --- a/src/parser.py +++ b/src/parser.py @@ -363,7 +363,7 @@ class CaptureParser: "country": row[7], - + "vendor": vendor, diff --git a/src/session.py b/src/session.py index 8780247..e405299 100644 --- a/src/session.py +++ b/src/session.py @@ -275,4 +275,3 @@ class Session: self.gps_positions += 1 - diff --git a/src/wifitrip.py b/src/wifitrip.py index 26aaba8..2cd0e7f 100644 --- a/src/wifitrip.py +++ b/src/wifitrip.py @@ -2729,4 +2729,3 @@ def import_wifitrip( ) return result - \ No newline at end of file