From 48fecc395198cac75de59593a277c53ba4c8f9fb Mon Sep 17 00:00:00 2001 From: ruidajo Date: Mon, 26 Sep 2022 19:02:00 -0500 Subject: [PATCH] Fixing the rebuilded common tiddlers exporter for JSON format. --- repository/TiddlyWiki/TiddlyWiki.class.st | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/repository/TiddlyWiki/TiddlyWiki.class.st b/repository/TiddlyWiki/TiddlyWiki.class.st index 54f3e72..b3a1711 100644 --- a/repository/TiddlyWiki/TiddlyWiki.class.st +++ b/repository/TiddlyWiki/TiddlyWiki.class.st @@ -218,10 +218,11 @@ TiddlyWiki >> exportJSONFileOptimized [ { #category : #accessing } TiddlyWiki >> exportJSONFromRebuildedCommonTiddlers [ - | rebuildedTiddlersJSON dateNowString | + | rebuildedTiddlersJSON dateNowString wikiFolder| + wikiFolder := self folder. dateNowString := (DateAndTime now asLocalStringYMDHM copyReplaceAll: ':' with: '-') copyReplaceAll: ' ' with: '-'. rebuildedTiddlersJSON := '[', (',' join: (self rebuildTiddlersWithoutLargeTiddlers collect: [ :each | each asJsonString ])), ']'. - ^ MarkupFile exportAsFileOn: self folder / 'rebuildedCommonTiddlers', dateNowString, 'json' containing: rebuildedTiddlersJSON + ^ MarkupFile exportAsFileOn: wikiFolder / 'rebuildedCommonTiddlers', dateNowString, 'json' containing: rebuildedTiddlersJSON ]