From 9ddaf8f309246b1a33c9edce27c9976fe399b4d4 Mon Sep 17 00:00:00 2001 From: Benoit Suttor Date: Wed, 15 Jul 2020 10:45:09 +0200 Subject: [PATCH] Readd save json; need to fix tests before removing it --- .../management/commands/wc-base-import.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/authentic2_wallonie_connect/management/commands/wc-base-import.py b/src/authentic2_wallonie_connect/management/commands/wc-base-import.py index 35f5eaf..ed0ab4d 100644 --- a/src/authentic2_wallonie_connect/management/commands/wc-base-import.py +++ b/src/authentic2_wallonie_connect/management/commands/wc-base-import.py @@ -80,9 +80,9 @@ class Command(BaseCommand): if not isinstance(contents, list): contents = [contents] self.do(contents=contents) - # contents = {"data": contents} - # with open(path, "w") as fd: - # json.dump(contents, fd, indent=4) + contents = {"data": contents} + with open(path, "w") as fd: + json.dump(contents, fd, indent=4) def info(self, *args, **kwargs): if self.verbosity >= 1: