Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,12 +27,12 @@ def tasks_json():
|
|
| 27 |
def fix_json():
|
| 28 |
with open("tasks.json", "r") as fix_file:
|
| 29 |
for i, line in enumerate(fix_file.readlines()):
|
| 30 |
-
print (line)
|
| 31 |
-
line.replace("name:",'"name":')
|
| 32 |
-
line.replace("modality:",'"modality":')
|
| 33 |
-
line.replace("type:",'"type":')
|
| 34 |
-
line.replace("subtasks:",'"subtasks":')
|
| 35 |
-
line.replace("color:",'"color":')
|
| 36 |
|
| 37 |
-
print (
|
| 38 |
fix_json()
|
|
|
|
| 27 |
def fix_json():
|
| 28 |
with open("tasks.json", "r") as fix_file:
|
| 29 |
for i, line in enumerate(fix_file.readlines()):
|
| 30 |
+
#print (line)
|
| 31 |
+
out = line.replace("name:",'"name":')
|
| 32 |
+
out = line.replace("modality:",'"modality":')
|
| 33 |
+
out = line.replace("type:",'"type":')
|
| 34 |
+
out = line.replace("subtasks:",'"subtasks":')
|
| 35 |
+
out = line.replace("color:",'"color":')
|
| 36 |
|
| 37 |
+
print (out)
|
| 38 |
fix_json()
|