Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -81,11 +81,11 @@ def process_and_store_bubble_token(url_user_token, org_urn, token_state):
|
|
81 |
logging.info(f"Attempting to fetch posts from Bubble for org_urn: {current_org_urn}")
|
82 |
try:
|
83 |
# Assuming fetch_posts_from_bubble returns a Pandas DataFrame or None
|
84 |
-
|
85 |
new_state["bubble_posts_df"] = df_bubble_posts # Store DataFrame in state
|
86 |
logging.info(f"df {len(df_bubble_posts)}")
|
87 |
|
88 |
-
if df_bubble_posts is not None and not
|
89 |
logging.info(f"✅ Successfully fetched {len(df_bubble_posts)} posts from Bubble. Sync button will be enabled.")
|
90 |
button_visible = True
|
91 |
button_interactive = True
|
|
|
81 |
logging.info(f"Attempting to fetch posts from Bubble for org_urn: {current_org_urn}")
|
82 |
try:
|
83 |
# Assuming fetch_posts_from_bubble returns a Pandas DataFrame or None
|
84 |
+
bubble_posts_df, error_message = fetch_posts_from_bubble(current_org_urn)
|
85 |
new_state["bubble_posts_df"] = df_bubble_posts # Store DataFrame in state
|
86 |
logging.info(f"df {len(df_bubble_posts)}")
|
87 |
|
88 |
+
if df_bubble_posts is not None and not new_state["bubble_posts_df"].empty:
|
89 |
logging.info(f"✅ Successfully fetched {len(df_bubble_posts)} posts from Bubble. Sync button will be enabled.")
|
90 |
button_visible = True
|
91 |
button_interactive = True
|