kopia lustrzana https://github.com/cblgh/lieu
Removed debugging outputs
rodzic
b431a15441
commit
b2a9947fb9
|
@ -289,9 +289,6 @@ func SearchWords(db *sql.DB, words []string, searchByScore bool, domain []string
|
|||
LIMIT 15
|
||||
`, strings.Join(wordlist, " OR "), strings.Join(domains, " OR "), strings.Join(nodomains, " AND "), strings.Join(languages, " OR "), orderType)
|
||||
|
||||
fmt.Println(words)
|
||||
fmt.Println(query)
|
||||
|
||||
stmt, err := db.Prepare(query)
|
||||
util.Check(err)
|
||||
defer stmt.Close()
|
||||
|
|
|
@ -87,7 +87,6 @@ func (h RequestHandler) searchRoute(res http.ResponseWriter, req *http.Request)
|
|||
}
|
||||
|
||||
var newQueryFields []string;
|
||||
fmt.Println("Query Fields:", queryFields)
|
||||
for _, word := range queryFields {
|
||||
// This could be more efficient by splitting arrays, but I'm going with the more readable version for now
|
||||
if strings.HasPrefix(word, "site:") {
|
||||
|
|
Ładowanie…
Reference in New Issue