diff options
-rw-r--r-- | app.py | 1 | ||||
-rw-r--r-- | autoAidModules/search_funcs.py | 6 | ||||
-rw-r--r-- | templates/index.html | 2 |
3 files changed, 4 insertions, 5 deletions
@@ -13,7 +13,6 @@ current_task = [] my_cars = { "2005 Subaru Forester XT": 0, "2001 BMW 540i": 0, - "1999 Mazda Miata": 0, } selected_car = "2001 BMW 540i" diff --git a/autoAidModules/search_funcs.py b/autoAidModules/search_funcs.py index e69ed47..38c3c00 100644 --- a/autoAidModules/search_funcs.py +++ b/autoAidModules/search_funcs.py @@ -76,10 +76,10 @@ def search_on_forum(forum, query, max_results: int = 5): "google_domain": "google.com", "api_key": os.environ.get("SERP_API_KEY", "demo") } - #search = GoogleSearch(params) - #results = search.get_dict() + search = GoogleSearch(params) + results = search.get_dict() - results = res # Debugging Data + #results = res # Debugging Data if results["search_metadata"]['status'] == "Success": data = [] for idx, result in enumerate(results["organic_results"]): diff --git a/templates/index.html b/templates/index.html index 3fa91d3..2ef19d1 100644 --- a/templates/index.html +++ b/templates/index.html @@ -171,7 +171,7 @@ <span class="sr-only">Open user menu</span> <img class="h-8 w-8 rounded-full bg-gray-50" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt=""> <span class="hidden lg:flex lg:items-center"> - <span class="ml-4 text-sm font-semibold leading-6 text-gray-900" aria-hidden="true">Tom Cook</span> + <span class="ml-4 text-sm font-semibold leading-6 text-gray-900" aria-hidden="true">Tom Apple</span> <svg class="ml-2 h-5 w-5 text-gray-400" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"> <path fill-rule="evenodd" d="M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z" clip-rule="evenodd" /> </svg> |