Fixing method for geting oldest tweets, modifying store avoiding duplication.
This commit is contained in:
parent
06b0d5748d
commit
104fe9e348
@ -1,4 +1,4 @@
|
||||
accessing
|
||||
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
|
@ -1,8 +1,8 @@
|
||||
accessing
|
||||
store
|
||||
ReStore isConnected ifFalse: [ self class storeDB ]. "Starting the ReStore singleton."
|
||||
self messages do: [ :each | ReStore evaluateAsTransaction: [
|
||||
each store.
|
||||
self messages do: [ :each | ReStore evaluateAsTransaction: [
|
||||
each isInDB ifFalse: [ each store ].
|
||||
each user isInDB ifFalse: [ each user store ]
|
||||
]
|
||||
].
|
Loading…
Reference in New Issue
Block a user