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

Update wikipedia.py to fix suggestion in page function. #297

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

Conversation

konmenel
Copy link

@konmenel konmenel commented Nov 4, 2021

If you tried to search for 'ireland' with the auto_suggest=True, the title was set to 'island' because the suggestion='island' and results[0]='ireland'. Thus suggestion or results[0] = suggestion. Shouldn't the expected behavior title be 'ireland' if you searched for 'ireland', even with auto_suggest=True. A small change but make a difference in my opinion.

P.S. reversing the order doesn't work because of you made a spelling mistake, for instance 'ieland', the title will be set to something completely different, 'Jimmy MacCarthy' in that case. I that case you what the suggestion as the title, as in that example the suggestion is actually 'ireland'.

If you tried to search for 'ireland' with the auto_suggest=True, the title was set to 'island' because the suggestion='island' and results[0]='ireland'. Thus suggestion or results[0] = suggestion. Shouldn't the expected behavior title be 'ireland' if you searched for 'ireland', even with auto_suggest=True. A small change but make a difference in my opinion.

P.S. reversing the order doesn't work because of you made a spelling mistake, for instance 'ieland', the title will be set to something completely different, 'Jimmy MacCarthy' in that case. I that case you what the suggestion as the title, as in that example the suggestion is actually 'ireland'.
@konmenel konmenel changed the title Update wikipedia.py to fixed suggestion in page function. Update wikipedia.py to fix suggestion in page function. Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant