Return Status object rather than ID in twitools.tweet()

This commit is contained in:
Klaus-Uwe Mitterer 2017-03-09 20:08:38 +01:00
parent b6e6a3f803
commit 3e541c5224
2 changed files with 2 additions and 2 deletions

View file

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

View file

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