(self)
| 13 | path = "/search/inside" |
| 14 | |
| 15 | def GET(self): |
| 16 | search_start = time() # should probably use a @timeit decorator |
| 17 | i = web.input(q="", page=1) |
| 18 | query = i.q |
| 19 | page = int(i.page) |
| 20 | results = fulltext_search(query, page=page, limit=RESULTS_PER_PAGE) |
| 21 | search_time = time() - search_start |
| 22 | |
| 23 | return render_template( |
| 24 | "search/inside.tmpl", |
| 25 | query, |
| 26 | results, |
| 27 | search_time, |
| 28 | page=page, |
| 29 | results_per_page=RESULTS_PER_PAGE, |
| 30 | ) |
| 31 | |
| 32 | |
| 33 | def setup(): |
nothing calls this directly
no test coverage detected