Update app.py
Browse files
app.py
CHANGED
|
@@ -182,14 +182,9 @@ async def _file_upload(my_file:
|
|
| 182 |
|
| 183 |
# some JSON:
|
| 184 |
x = '{ "success":success, "errorMessage":errorMessage}'
|
| 185 |
-
|
| 186 |
|
| 187 |
-
# parsing JSON string:
|
| 188 |
-
z = json_file#json.loads(x)
|
| 189 |
|
| 190 |
-
# appending the data
|
| 191 |
-
json_file.update(x)
|
| 192 |
-
|
| 193 |
|
| 194 |
|
| 195 |
return json_file
|
|
|
|
| 182 |
|
| 183 |
# some JSON:
|
| 184 |
x = '{ "success":success, "errorMessage":errorMessage}'
|
| 185 |
+
json_file["data"] = x
|
| 186 |
|
|
|
|
|
|
|
| 187 |
|
|
|
|
|
|
|
|
|
|
| 188 |
|
| 189 |
|
| 190 |
return json_file
|