GuglielmoTor commited on
Commit
74b193b
·
verified ·
1 Parent(s): ad4bde4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- df_bubble_posts = 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 df_bubble_posts.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
 
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