Fixing the rebuilded common tiddlers exporter for JSON format.

This commit is contained in:
ruidajo 2022-09-26 19:02:00 -05:00
parent 2262ebaec2
commit 48fecc3951

View File

@ -218,10 +218,11 @@ TiddlyWiki >> exportJSONFileOptimized [
{ #category : #accessing } { #category : #accessing }
TiddlyWiki >> exportJSONFromRebuildedCommonTiddlers [ TiddlyWiki >> exportJSONFromRebuildedCommonTiddlers [
| rebuildedTiddlersJSON dateNowString | | rebuildedTiddlersJSON dateNowString wikiFolder|
wikiFolder := self folder.
dateNowString := (DateAndTime now asLocalStringYMDHM copyReplaceAll: ':' with: '-') copyReplaceAll: ' ' with: '-'. dateNowString := (DateAndTime now asLocalStringYMDHM copyReplaceAll: ':' with: '-') copyReplaceAll: ' ' with: '-'.
rebuildedTiddlersJSON := '[', (',' join: (self rebuildTiddlersWithoutLargeTiddlers collect: [ :each | each asJsonString ])), ']'. 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
] ]