Spaces:
Running
Running
Update post_blog.py
Browse files- post_blog.py +2 -2
post_blog.py
CHANGED
@@ -100,7 +100,7 @@ def create_post(title, category, summary, mindmap, citation):
|
|
100 |
f.write(post_body)
|
101 |
return post_title, post_category, post_body, post_image
|
102 |
|
103 |
-
def post_post(title, category, body, image
|
104 |
data = None
|
105 |
try:
|
106 |
data = requests.post(
|
@@ -147,7 +147,7 @@ def post_blog(title, category, summary, mindmap, citation, uaccess_key):
|
|
147 |
return False
|
148 |
try:
|
149 |
post_title, post_category, post_body, post_image = create_post(title, category, summary, mindmap, citation)
|
150 |
-
status = post_post(post_title, post_category, post_body, post_image
|
151 |
print(f"Waiting for {3*60} seconds...")
|
152 |
time.sleep(3*60)
|
153 |
if status:
|
|
|
100 |
f.write(post_body)
|
101 |
return post_title, post_category, post_body, post_image
|
102 |
|
103 |
+
def post_post(title, category, body, image):
|
104 |
data = None
|
105 |
try:
|
106 |
data = requests.post(
|
|
|
147 |
return False
|
148 |
try:
|
149 |
post_title, post_category, post_body, post_image = create_post(title, category, summary, mindmap, citation)
|
150 |
+
status = post_post(post_title, post_category, post_body, post_image)
|
151 |
print(f"Waiting for {3*60} seconds...")
|
152 |
time.sleep(3*60)
|
153 |
if status:
|