projects
/
osqa.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
beta version af the sx importer, don't use for importing production sites, only for...
[osqa.git]
/
forum_modules
/
pgfulltext
/
handlers.py
1
from forum.models import Question
2
3
def question_search(keywords):
4
return Question.objects.extra(
5
select={
6
'ranking': "node_ranking(id, %s)",
7
},
8
where=["node_ranking(id, %s) > 0"],
9
params=[keywords],
10
select_params=[keywords]
11
).order_by('-ranking')