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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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)) + '...' | ||
except IOError: | ||
suggestions = 'Mathématiques, UDK, HTML, Java, Python' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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... There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
|
||
|
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.
J'étais pourtant persuadé que c'était bien comme ça. Mais n'étant pas expert de ces règles...