Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,11 +28,16 @@ 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 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
print (out)
|
| 38 |
fix_json()
|
|
|
|
| 28 |
with open("tasks.json", "r") as fix_file:
|
| 29 |
for i, line in enumerate(fix_file.readlines()):
|
| 30 |
#print (line)
|
| 31 |
+
if "name:" in line:
|
| 32 |
+
out = line.replace("name:",'"name":')
|
| 33 |
+
if "modality:" in line:
|
| 34 |
+
out = line.replace("modality:",'"modality":')
|
| 35 |
+
if "type:" in line:
|
| 36 |
+
out = line.replace("type:",'"type":')
|
| 37 |
+
if "subtasks:" in line:
|
| 38 |
+
out = line.replace("subtasks:",'"subtasks":')
|
| 39 |
+
if "color:" in line:
|
| 40 |
+
out = line.replace("color:",'"color":')
|
| 41 |
|
| 42 |
print (out)
|
| 43 |
fix_json()
|