indent to 2
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ def return_operation_requests(from_model, to_model):
|
|
| 20 |
path_for = ls[i]
|
| 21 |
will_write = json.loads(fs.read_text(path_for))
|
| 22 |
will_write['model'] = to_model
|
| 23 |
-
will_write = json.dumps(will_write)
|
| 24 |
|
| 25 |
liste.extend([CommitOperationAdd(path_in_repo="/".join(remove_from(path_for, from_model, to_model).split("/")[3:]), path_or_fileobj=will_write.encode()),
|
| 26 |
CommitOperationDelete(path_in_repo="/".join(path_for.split("/")[3:]))])
|
|
|
|
| 20 |
path_for = ls[i]
|
| 21 |
will_write = json.loads(fs.read_text(path_for))
|
| 22 |
will_write['model'] = to_model
|
| 23 |
+
will_write = json.dumps(will_write, indent=2)
|
| 24 |
|
| 25 |
liste.extend([CommitOperationAdd(path_in_repo="/".join(remove_from(path_for, from_model, to_model).split("/")[3:]), path_or_fileobj=will_write.encode()),
|
| 26 |
CommitOperationDelete(path_in_repo="/".join(path_for.split("/")[3:]))])
|