-
Notifications
You must be signed in to change notification settings - Fork 75
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
Results #98
base: master
Are you sure you want to change the base?
Results #98
Conversation
search/views.py
Outdated
def query(request): | ||
global algo_name, title | ||
if request.method == 'GET': | ||
query = re.escape(request.GET['q']).replace('\ ', ' ') | ||
|
||
#add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove comments that such this, since the diff
will highlight those new code line or modified one.
return all_insert(X[0], e) + for_each(X[1:],e) if X else [] | ||
|
||
def permute(x): | ||
return [x] if len(x) < 2 else for_each( permute(x[1:]) , x[0]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Standard libs have already implemented this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iattempt Just updated the comments.
The Travis Build must pass to get this merged. You have made an important contribution which will improve the search results. Kindly take a look at the errors here and make suitable changes. 👍 |
Checklist
develop
branch.Which issue does this PR fix?:
fixes: #70
This PR resolves issue #70 (The random keywords in search box aren't always having a search result).
Why do we need this PR?:
For keyword linear search, the permutations generated must be linear_search, search_linear, linear and search. The search should be able to handle such cases. We aim to broaden the search experience of users through this PR and the PRs that follow.
Thanks,
Team GalSquared | RGSoC