From 5ffe0edcb5e04e692386cdcc4f0fc9883a984706 Mon Sep 17 00:00:00 2001 From: Sweyn Venderbush Date: Mon, 14 Mar 2016 14:06:39 -0400 Subject: [PATCH] Add the ability to disable discussion --- diffbot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/diffbot.py b/diffbot.py index e433eab..98a3b11 100644 --- a/diffbot.py +++ b/diffbot.py @@ -74,11 +74,14 @@ def api(self, name, url, **kwargs): timeout = kwargs.get('timeout') text = kwargs.get('text') html = kwargs.get('html') + discussion = kwargs.get('discussion') if text and html: raise ValueError(u'Both `text` and `html` arguments provided!') params = {'url': url, 'token': self._token} if timeout: params['timeout'] = timeout + if discussion: + params['discussion'] = discussion if fields: if not isinstance(fields, str): fields = ','.join(sorted(fields))