Skip to content

Commit 92353fc

Browse files
refactor(#367): use new fn with dialog
1 parent 5cfabb6 commit 92353fc

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

protonvpn_cli/connection.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,10 @@ def show_dialog(headline, choices, stop=False):
8080
for country in sorted(countries.keys()):
8181
country_features = []
8282
for server in countries[country]:
83-
feat = int(get_server_value(server, "Features", servers))
84-
for bit_flag in features:
85-
if (feat & bit_flag) != 0:
86-
if not features[bit_flag] in country_features:
87-
country_features.append(features[bit_flag])
83+
server_features = get_server_features(server, servers)
84+
for feat in server_features:
85+
if not feat in country_features:
86+
country_features.append(feat)
8887

8988
if len(country_features) == 0:
9089
country_features.append("Normal")

0 commit comments

Comments
 (0)