Skip to content

Commit

Permalink
enable selecting many countries in filter
Browse files Browse the repository at this point in the history
The needed thing was already there for a long time. 
Just add a bar and it works like a charm.
  • Loading branch information
Dragon2fly authored Jul 12, 2020
1 parent 1939558 commit e09a838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def get_input(s, option):
s.sort['key'] = 'up time' if user_input == 'uptime' else user_input

elif user_input == '5':
while not re.match('^[a-z ]*$', user_input.lower().strip()):
while not re.match(r'^[a-z| ]*$', user_input.lower().strip()):
user_input = input('Country\'s name (eg: [all], jp, japan): ')
else:
s.filter['country'] = 'all' if not user_input else user_input.lower()
Expand Down

0 comments on commit e09a838

Please sign in to comment.