From 3e541c5224c68b6e73df933b9ce823d29902b935 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Thu, 9 Mar 2017 20:08:38 +0100 Subject: [PATCH] Return Status object rather than ID in twitools.tweet() --- lyricsbot.py | 2 +- twitools/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lyricsbot.py b/lyricsbot.py index afe1e01..b19337b 100755 --- a/lyricsbot.py +++ b/lyricsbot.py @@ -26,4 +26,4 @@ def postprocess(lid, tid, db = dbtools.dbHelper()): if __name__ == "__main__": lid, text, ref = getLyrics() - postprocess(lid, twitools.tweet("%s (#%i)" % (text, int(lid)), ref, setuptools.LYRICS)) + postprocess(lid, twitools.tweet("%s (#%i)" % (text, int(lid)).id, ref, setuptools.LYRICS)) diff --git a/twitools/__init__.py b/twitools/__init__.py index a59fdaa..64d65f8 100644 --- a/twitools/__init__.py +++ b/twitools/__init__.py @@ -68,4 +68,4 @@ def twoHelper(section = setuptools.TWITTER): return twObject() def tweet(text, ref = 0, section = setuptools.TWITTER): - return twoHelper(section).tweet(text, ref).id + return twoHelper(section).tweet(text, ref)