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 all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions zds/pages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ 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'
suggestions = 'Mathématiques, Droit, UDK, Langues, Python...'
Copy link
Member

Choose a reason for hiding this comment

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

Pourquoi il n'y a pas Android dans la liste par défaut ? :o

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hum... comment dire ? :D


return render(request, 'home.html', {
'featured_message': FeaturedMessage.objects.get_last_message(),
Expand Down