Omnibus commited on
Commit
453b5a2
·
1 Parent(s): ae19ada

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -5
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
- 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()
 
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()