24 if search.search_query.pageno > 1:
26 if ip_regex.search(search.search_query.query):
27 ip = get_real_ip(request)
28 search.result_container.answers[
'ip'] = {
'answer': gettext(
'Your IP is: ') + ip}
29 elif ua_regex.match(search.search_query.query):
30 ua = request.user_agent
31 search.result_container.answers[
'user-agent'] = {
'answer': gettext(
'Your user-agent is: ') + ua.string}