From e4ec0b31d19376f94763dd08617be20f15b2ad41 Mon Sep 17 00:00:00 2001 From: sq9atk Date: Sun, 27 Aug 2023 08:37:44 +0200 Subject: [PATCH] VHF-tropo poprawka --- vhf_tropo_sq9atk.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/vhf_tropo_sq9atk.py b/vhf_tropo_sq9atk.py index 1b6e214..99bc2d0 100755 --- a/vhf_tropo_sq9atk.py +++ b/vhf_tropo_sq9atk.py @@ -205,11 +205,10 @@ class VhfTropoSq9atk(SR0WXModule): } - def getTopDirectionsValues(self, input_table, threshold): + def getTopDirectionsValues(self, input_table): filtered_rows = [] for key, value in input_table.iteritems(): - if value > threshold: - filtered_rows.append((key, value)) + filtered_rows.append((key, value)) filtered_rows.sort(key=lambda x: x[1], reverse=True) @@ -239,7 +238,7 @@ class VhfTropoSq9atk(SR0WXModule): message = ' vhf_uwaga vhf_warunki_podwyzszone _ ' + message if mainConditionValue > 0.5: message += ' vhf_najlepsze_warunki_w_kierunku ' - message += " _ ".join( self.getTopDirectionsValues(directionalConditionsValues, mainConditionValue)) + message += " _ ".join( self.getTopDirectionsValues(directionalConditionsValues)) return message