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

Typo suggestions de recherche #3292

Merged
merged 2 commits into from Jan 12, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion zds/pages/views.py
Expand Up @@ -45,7 +45,7 @@ def home(request):

try:
with open(os.path.join(BASE_DIR, 'suggestions.txt'), 'r') as suggestions_file:
suggestions = ', '.join(random.sample(suggestions_file.readlines(), 5)) + ', ...'
suggestions = ', '.join(random.sample(suggestions_file.readlines(), 5)) + '...'
Copy link
Contributor

Choose a reason for hiding this comment

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

J'étais pourtant persuadé que c'était bien comme ça. Mais n'étant pas expert de ces règles...

except IOError:
suggestions = 'Mathématiques, UDK, HTML, Java, Python'
Copy link
Contributor

Choose a reason for hiding this comment

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

Du coup, on peut en profiter pour rajouter les « ... » ici tant que l'on y est ? Bon, c'est vraiment des détails...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

J'en ai profité pour diversifier les suggestions par défaut, qu'on ne se croie pas sur un site d'informatique.

Copy link
Contributor

Choose a reason for hiding this comment

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

Super ! J'avais laissé les anciennes suggestions. Il y a très peu de chance que l'on tombe sur ces suggestions, mais sait-on jamais.


Expand Down