Readd save json; need to fix tests before removing it

This commit is contained in:
Benoit Suttor 2020-07-15 10:45:09 +02:00
parent 149b45e355
commit 9ddaf8f309
1 changed files with 3 additions and 3 deletions

View File

@ -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: