Skip intermediate steps when loading/saving json files, and always use 2 space indent

This commit is contained in:
Veronica K. B. Olsen committed 2020-10-21 20:05:54 +02:00
1 parent f69c37fe91
commit 37c5ecc755
6 files changed
+12 -19

No files matched your search

+1 -1
View File
@@ -362,7 +362,7 @@ class GuiWritingStats(QDialog):
"novelWords": wA,
"noteWords": wB,
})
outFile.write(json.dumps(jsonData, indent=2))
json.dump(jsonData, outFile, indent=2)
wSuccess = True
elif dataFmt == self.FMT_CSV: