From 69941fbcfb2e9c01867a084a44633192bb7e43a0 Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Wed, 6 Apr 2022 12:46:32 -0500 Subject: [PATCH] Recovering changes after GT malfunction and image restarting. --- .../NitterUser.class/instance/storeContents.st | 7 +++++-- .../TweetsCollection.class/instance/store.st | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) 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