Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -289,9 +289,9 @@ def find_rss():
|
|
289 |
timestamp=str(datetime.datetime.now())
|
290 |
timename=timestamp.replace(" ","--").replace(":","-").replace(".","-")
|
291 |
|
292 |
-
|
293 |
with open("tmp1.json", "w") as outfile:
|
294 |
-
outfile.write(
|
295 |
api.upload_file(
|
296 |
path_or_fileobj="tmp1.json",
|
297 |
path_in_repo=f"/rss/{timename}.json",
|
|
|
289 |
timestamp=str(datetime.datetime.now())
|
290 |
timename=timestamp.replace(" ","--").replace(":","-").replace(".","-")
|
291 |
|
292 |
+
json_object = json.dumps(out_box[0], indent=4)
|
293 |
with open("tmp1.json", "w") as outfile:
|
294 |
+
outfile.write(json_object)
|
295 |
api.upload_file(
|
296 |
path_or_fileobj="tmp1.json",
|
297 |
path_in_repo=f"/rss/{timename}.json",
|