ResultSet is child of list...

This commit is contained in:
overflowerror 2015-03-23 13:27:50 +01:00
parent faaf146ddf
commit de01c8a0be

View file

@ -66,12 +66,12 @@ if __name__ == "__main__":
lastChange = 0
lastChange = api.direct_messages(since_id = lastChange)
if lastChange.rowcount == 0:
if len(lastChange) == 0:
lastChange = 0
else:
lastChange = lastChange[0].GetId()
lastChange = api.mentions_timeline(since_id = lastChange)
if lastChange.rowcount != 0:
if len(lastChange) != 0:
lastChange = lastChange[0].GetId()
while true: