From 41ad559dc34775c39b36f5fe959d114d43246d8e Mon Sep 17 00:00:00 2001 From: Adriene Hutchins Date: Tue, 24 Mar 2020 19:24:58 -0400 Subject: [PATCH] Fix URL --- extensions/search.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/extensions/search.py b/extensions/search.py index 132af17..c92c02a 100644 --- a/extensions/search.py +++ b/extensions/search.py @@ -7,8 +7,6 @@ import discord from discord.ext import commands -import aiohttp -import random from typing import List from extensions.models import SearchExceptions import html2text @@ -155,7 +153,7 @@ class Search(commands.Cog, name="Basic"): other_results: List[str] = [] for r in results[1:count]: title = self.tomd.handle(r['title']).rstrip('\n') - url = results[0]['url'] + url = results['url'] other_results.append(f"**{title}** <{url}>") other_msg: str = "\n".join(other_results)