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

Results #98

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Results #98

wants to merge 3 commits into from

Conversation

anne27
Copy link
Contributor

@anne27 anne27 commented Mar 15, 2018

Checklist

  • My branch is up-to-date with the upstream develop branch.
  • I have added necessary documentation (if appropriate). [Not applicable]

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

search/views.py Outdated
def query(request):
global algo_name, title
if request.method == 'GET':
query = re.escape(request.GET['q']).replace('\ ', ' ')

#add
Copy link

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])
Copy link

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.

Copy link
Contributor Author

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.

@AdiChat
Copy link
Member

AdiChat commented Apr 4, 2018

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. 👍

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

Successfully merging this pull request may close these issues.

The random keywords in search box aren't always having a search result
4 participants