1
This commit is contained in:
Alex Yatskov 2015-03-03 21:40:27 +09:00
parent 6d99ce2e07
commit 8f77e0bbe2
3 changed files with 4 additions and 8 deletions

View File

@ -4,11 +4,6 @@
<title>Search Profile</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css">
<style type="text/css">
.form-horizontal .control-label {
text-align: left;
}
</style>
</head>
<body>
<div class="container">
@ -61,5 +56,6 @@
<script src="bower_components/underscore/underscore.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
<script src="scripts/profile.js"></script>
</body>
</html>

View File

@ -246,7 +246,7 @@ function addCategory(query, callback) {
}
}
function execQuery(query, callback) {
function runQuery(query, callback) {
sanitizeQuery(query);
var context = {
@ -289,7 +289,7 @@ function execQuery(query, callback) {
module.exports = {
loadDb: loadDb,
execQuery: execQuery,
runQuery: runQuery,
getCategories: getCategories,
addCategory: addCategory
};

View File

@ -40,7 +40,7 @@ function main(staticFiles, port) {
});
app.use('/query', function(req, res) {
search.execQuery(req.query, function(results) {
search.runQuery(req.query, function(results) {
res.json(results);
});
});