Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,10 +28,7 @@ def fix_json():
|
|
| 28 |
new_json=[]
|
| 29 |
with open("tasks.json", "r") as fix_file:
|
| 30 |
for i, line in enumerate(fix_file.readlines()):
|
| 31 |
-
|
| 32 |
-
line.decode("utf-8")
|
| 33 |
-
except Exception:
|
| 34 |
-
pass
|
| 35 |
#print (line)
|
| 36 |
if "name:" in line:
|
| 37 |
out = line.replace("name:",'"name":')
|
|
@@ -66,8 +63,13 @@ def fix_json():
|
|
| 66 |
new_json.append(line)
|
| 67 |
print(line)
|
| 68 |
|
| 69 |
-
|
| 70 |
#print (json.dumps(new_json))
|
| 71 |
#new_out=new_json.decode("utf-8")
|
| 72 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
fix_json()
|
|
|
|
| 28 |
new_json=[]
|
| 29 |
with open("tasks.json", "r") as fix_file:
|
| 30 |
for i, line in enumerate(fix_file.readlines()):
|
| 31 |
+
|
|
|
|
|
|
|
|
|
|
| 32 |
#print (line)
|
| 33 |
if "name:" in line:
|
| 34 |
out = line.replace("name:",'"name":')
|
|
|
|
| 63 |
new_json.append(line)
|
| 64 |
print(line)
|
| 65 |
|
| 66 |
+
|
| 67 |
#print (json.dumps(new_json))
|
| 68 |
#new_out=new_json.decode("utf-8")
|
| 69 |
+
for i,line in enumerate(new_json):
|
| 70 |
+
try:
|
| 71 |
+
line.decode("utf-8")
|
| 72 |
+
except Exception:
|
| 73 |
+
pass
|
| 74 |
+
print (line)
|
| 75 |
fix_json()
|