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
f4ed27ea
Commit
f4ed27ea
authored
Sep 07, 2014
by
eric
Browse files
Allow sniffing without finding (re-index view would balk if there were no public posts)
parent
ec78dcbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
relearn/management/commands/index.py
View file @
f4ed27ea
...
...
@@ -100,6 +100,10 @@ def query_results_to_template_articles(query_results):
template_articles
=
[]
article
=
None
current_uri
=
None
if
len
(
query_results
)
==
0
:
return
template_articles
for
s
,
p
,
o
in
query_results
:
print
s
.
encode
(
'utf-8'
),
p
.
encode
(
'utf-8'
),
o
.
encode
(
'utf-8'
)
uri
=
unicode
(
s
).
strip
()
...
...
Write
Preview
Markdown
is supported
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