Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing server list to respect exclude flag #712

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixing server list to respect exclude flag #712

wants to merge 1 commit into from

Conversation

StephanieSunshine
Copy link

Here is a patch to make --list respect --exclude. I had to exclude a bad server from the server list tonight and found this wasn't functioning as expected.

@tnatsponske
Copy link

Hi,
Is it possible to add the proximus (Belgium) server again? it was "--server 10986" ?
Or is there another way to force this server ?

@@ -1880,7 +1880,10 @@ def shell():

if args.list:
try:
speedtest.get_servers()
if args.exclude:
speedtest.get_servers(exclude=args.exclude)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indention not correct

if args.exclude:
speedtest.get_servers(exclude=args.exclude)
else:
speedtest.get_servers()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indention not correct

@dm17
Copy link

dm17 commented Mar 8, 2022

How do you get the full server list? Are we only allowed to know about the servers closest to us?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants