Readd save json; need to fix tests before removing it
This commit is contained in:
parent
149b45e355
commit
9ddaf8f309
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue