Simon Riezebos commited on
Commit
8909418
·
1 Parent(s): 8d6d0f6
app/pages/1_💧_Flood_extent_analysis.py CHANGED
@@ -120,7 +120,7 @@ with row_checkboxes:
120
  if p["product_time_group"] == time_group
121
  ]
122
 
123
- available_status = ""
124
  for product in products_in_group:
125
  if product["product_id"] in index_df["product"].values:
126
  available_status = "Available in Floodmap"
@@ -152,9 +152,7 @@ with row_checkboxes:
152
  "Product time": st.column_config.TextColumn(
153
  "Product Time Group", disabled=True
154
  ),
155
- "Available": st.column_config.LinkColumn(
156
- "Available in dataset", display_text="Dataset link"
157
- ),
158
  },
159
  hide_index=True,
160
  disabled=["Product time", "Available"],
@@ -210,6 +208,7 @@ with below_checkbox_col1:
210
 
211
  # For all the selected products add them to the map if they are available
212
  feature_groups = []
 
213
  selected_geojsons = []
214
  if st.session_state["all_products"]:
215
  index_df = hf_utils.get_geojson_index_df()
 
120
  if p["product_time_group"] == time_group
121
  ]
122
 
123
+ dataset_link = ""
124
  for product in products_in_group:
125
  if product["product_id"] in index_df["product"].values:
126
  available_status = "Available in Floodmap"
 
152
  "Product time": st.column_config.TextColumn(
153
  "Product Time Group", disabled=True
154
  ),
155
+ "Available": st.column_config.LinkColumn("Available in dataset"),
 
 
156
  },
157
  hide_index=True,
158
  disabled=["Product time", "Available"],
 
208
 
209
  # For all the selected products add them to the map if they are available
210
  feature_groups = []
211
+ flood_featuregroup = None
212
  selected_geojsons = []
213
  if st.session_state["all_products"]:
214
  index_df = hf_utils.get_geojson_index_df()