Add include_entities for direct messages. Should not do anything, but just to be sure...
This commit is contained in:
parent
fd1d1d5bac
commit
b3b9b26549
1 changed files with 2 additions and 2 deletions
|
@ -47,8 +47,8 @@ def getTweets(db=dbtools.dbHelper(), user=twitools.twObject().whoami(), two=twit
|
||||||
def getMessages(db=dbtools.dbHelper(), two=twitools.twObject()):
|
def getMessages(db=dbtools.dbHelper(), two=twitools.twObject()):
|
||||||
mcount = 0
|
mcount = 0
|
||||||
savepoint = db.getLatestMessage() + 1
|
savepoint = db.getLatestMessage() + 1
|
||||||
new_messages = two.api.direct_messages(since_id=savepoint, count=200, full_text=True)
|
new_messages = two.api.direct_messages(since_id=savepoint, count=200, full_text=True, include_entities=True)
|
||||||
new_out_messages = two.api.sent_direct_messages(since_id=savepoint, count=200, full_text=True)
|
new_out_messages = two.api.sent_direct_messages(since_id=savepoint, count=200, full_text=True, include_entities=True)
|
||||||
|
|
||||||
for m in (new_messages + new_out_messages):
|
for m in (new_messages + new_out_messages):
|
||||||
if dbtools.fillerfilter.messageFilter(m, True):
|
if dbtools.fillerfilter.messageFilter(m, True):
|
||||||
|
|
Loading…
Reference in a new issue