From 4cd9b04856ae16dd42d5eafc6210b81c87dc8bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Sun, 29 Apr 2018 15:13:57 +0200 Subject: [PATCH] Fix request in TwitchBot.delete() method --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 1cb9a67..abcc5e2 100644 --- a/bot.py +++ b/bot.py @@ -86,8 +86,8 @@ class TwitchBot(irc.bot.SingleServerIRCBot): return r.json() def delete(self, id): - r = requests.post('{0}/quote/{1}'.format(self.api_url, id), - headers={'X-Quotes-API-Key': self.api_key}) + r = requests.delete('{0}/quote/{1}'.format(self.api_url, id), + headers={'X-Quotes-API-Key': self.api_key}) r.raise_for_status() return r.json()