Пример #1
0
    def handle(self, *args, **options):
        case_id = args[0]
        filename = args[1]
        case = BiharCase.get(case_id)

        with open(filename, 'w') as f:
            f.write(json.dumps(case.dump_json(), indent=2))
Пример #2
0
    def handle(self, *args, **options):
        case_id = args[0]
        filename = args[1]
        case = BiharCase.get(case_id)

        with open(filename, "w") as f:
            f.write(json.dumps(case.dump_json(), indent=2))