Fixing messages for nitter user and tweets filtering.

This commit is contained in:
ruidajo 2022-05-14 19:39:21 -05:00
parent 0f62345220
commit ac5d935ce1
2 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,7 @@ tweets
select: [ :each | (each authorId = '1502504562984374276') or: [ each authorId = self id ] ] select: [ :each | (each authorId = '1502504562984374276') or: [ each authorId = self id ] ]
]. ].
(self userName ~= 'FranciaMarquezM' or: [ self userName ~= 'sandralajas' ]) (self userName ~= 'FranciaMarquezM' or: [ self userName ~= 'sandralajas' ])
ifFalse: [ subcollection := self messages select: [ :each | each authorId = self id ] ]. ifTrue: [ subcollection := self messages select: [ :each | each authorId = self id ] ].
^ TweetsCollection new ^ TweetsCollection new
messages: subcollection; messages: subcollection;
yourself yourself

View File

@ -1,4 +1,5 @@
accessing accessing
messages messages
messages ifNil: [ ^ messages := TweetsCollection new ]. messages ifNil: [ ^ messages := TweetsCollection new ].
self config isEmpty ifTrue: [ ^ messages ].
^ messages select: [ :message | message created between: self reportingPeriod start and: self reportingPeriod end ] ^ messages select: [ :message | message created between: self reportingPeriod start and: self reportingPeriod end ]