Return Status object rather than ID in twitools.tweet()
This commit is contained in:
parent
b6e6a3f803
commit
3e541c5224
2 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue