Fixing method for geting oldest tweets, modifying store avoiding duplication.
This commit is contained in:
parent
06b0d5748d
commit
104fe9e348
@ -1,4 +1,4 @@
|
|||||||
accessing
|
accessing
|
||||||
getPagesContentsFromOldestUpto: anInteger
|
getPagesContentsFromOldestUpto: anInteger
|
||||||
|
|
||||||
^ self getPagesContentsFrom: ((self messages oldest metadata select: [ :item | item beginsWith: 'https://' ]) values first) Upto: anInteger
|
^ self getPagesContentsFrom: ((self messages oldest metadata select: [ :item | item isString and: [ item beginsWith: 'https://' ]]) values first) Upto: anInteger
|
@ -2,7 +2,7 @@ accessing
|
|||||||
store
|
store
|
||||||
ReStore isConnected ifFalse: [ self class storeDB ]. "Starting the ReStore singleton."
|
ReStore isConnected ifFalse: [ self class storeDB ]. "Starting the ReStore singleton."
|
||||||
self messages do: [ :each | ReStore evaluateAsTransaction: [
|
self messages do: [ :each | ReStore evaluateAsTransaction: [
|
||||||
each store.
|
each isInDB ifFalse: [ each store ].
|
||||||
each user isInDB ifFalse: [ each user store ]
|
each user isInDB ifFalse: [ each user store ]
|
||||||
]
|
]
|
||||||
].
|
].
|
Loading…
Reference in New Issue
Block a user