Fix request in TwitchBot.delete() method

master
Nikola Forró 7 years ago
parent 59ca68969c
commit 4cd9b04856

@ -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()

Loading…
Cancel
Save