Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
osp
tools.ethertoff
Commits
73c9d7e6
Commit
73c9d7e6
authored
Sep 01, 2014
by
eric
Browse files
Ad hoc: remove the about page from indexing
Long term: maybe have some meta info. that determine if a page can be sniffed?
parent
6a59b2d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
relearn/management/commands/index.py
View file @
73c9d7e6
...
...
@@ -134,6 +134,9 @@ def query_results_to_template_articles(query_results):
template_articles
.
append
(
article
)
# Ad hoc: remove the about page (maybe have some meta info. that determine if a page can be sniffed?)
template_articles
=
[
article
for
article
in
template_articles
if
article
[
'title'
]
!=
"About"
]
return
sorted
(
template_articles
,
key
=
lambda
a
:
a
[
'date'
]
if
'date'
in
a
else
0
,
reverse
=
True
)
def
snif
():
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment