diff --git a/py-json/station_profile.py b/py-json/station_profile.py index d42cedc1..e3046779 100644 --- a/py-json/station_profile.py +++ b/py-json/station_profile.py @@ -230,7 +230,8 @@ class StationProfile: # self.add_sta_data["key"] = passwd def station_mode_to_number(self,mode): - modes = ['a','b','g','abg','an','abgn','bgn','bg','abgn-AC','bgn-AC','an-AC'] + modes = ['a', 'b', 'g', 'abg', 'an', 'abgn', 'bgn', 'bg', 'abgn-AC', 'bgn-AC', 'an-AC'] + return modes.index(mode) + 1 def add_security_extra(self, security): types = {"wep": "wep_enable", "wpa": "wpa_enable", "wpa2": "wpa2_enable", "wpa3": "use-wpa3", "open": "[BLANK]"} diff --git a/py-scripts/csv_to_influx.py b/py-scripts/csv_to_influx.py index f710356f..10ad58ac 100755 --- a/py-scripts/csv_to_influx.py +++ b/py-scripts/csv_to_influx.py @@ -42,7 +42,7 @@ class CSVtoInflux(): target_csv=None, sep='\t'): self.influxdb = influxdb - self.target_csv = target_csv.replace('/home/lanforge/html-reports/', '') + self.target_csv = target_csv self.influx_tag = _influx_tag self.sep = sep