From 014fbb35ee41ee5b0f8e5a4479ea47735eabd84f Mon Sep 17 00:00:00 2001 From: BFlow Date: Wed, 25 Mar 2020 18:25:51 +0100 Subject: [PATCH] =?UTF-8?q?correction=20N=C2=B02=20command=20issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kabot/kabot/kabot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 108c3f9..0672a39 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -148,7 +148,7 @@ class Mybot(commands.Cog): await ctx.channel.send('#' + str(issue.id) + ": " + issue.title + '\n' + issue.web_url) elif args[0] == 'search': query = ''.join(args[1:]) - project = gl.projects.get('Kabot') + project = gl.projects.list(search='Kabot')[0] find_issues = project.search("issues", query) for issue in find_issues: await ctx.channel.send("#" + str(issue['id']) + ": " + issue['title'] + '\n' + issue['web_url'])