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)