diff --git a/Socialmetrica.package/NitterUser.class/instance/storeContents.st b/Socialmetrica.package/NitterUser.class/instance/storeContents.st index 3aea2a2..f8fbca1 100644 --- a/Socialmetrica.package/NitterUser.class/instance/storeContents.st +++ b/Socialmetrica.package/NitterUser.class/instance/storeContents.st @@ -1,8 +1,11 @@ accessing storeContents - | objectString directory tempFile oldFile | - objectString := STON toStringPretty: self. + | objectString directory tempFile oldFile dehidratated | + + dehidratated := self copy. + dehidratated tweets: nil. + objectString := STON toStringPretty: dehidratated. directory := (FileLocator userData / 'Socialmetrica' / self userName) ensureCreateDirectory. oldFile := directory / self userName, 'ston'. diff --git a/Socialmetrica.package/TweetsCollection.class/instance/store.st b/Socialmetrica.package/TweetsCollection.class/instance/store.st index b996205..6cc1b0f 100644 --- a/Socialmetrica.package/TweetsCollection.class/instance/store.st +++ b/Socialmetrica.package/TweetsCollection.class/instance/store.st @@ -1,4 +1,4 @@ accessing store - self class storeDB. "Starting the ReStore singleton." + ReStore isConnected ifFalse: [ self class storeDB]. "Starting the ReStore singleton." self tweets do: [:each | ReStore evaluateAsTransaction: [ each store ] ]. \ No newline at end of file