Update app_v2.py
Browse files
app_v2.py
CHANGED
|
@@ -1333,20 +1333,28 @@ def _(get_data_asset_id_list, get_data_assets_button, mo, purge_data_assets):
|
|
| 1333 |
|
| 1334 |
@app.cell
|
| 1335 |
def _(get_data_assets_button, get_repository_button, mo, purge_data_assets):
|
| 1336 |
-
|
| 1337 |
-
|
| 1338 |
-
|
| 1339 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1340 |
|
| 1341 |
-
|
| 1342 |
-
|
| 1343 |
-
|
| 1344 |
-
|
|
|
|
| 1345 |
|
| 1346 |
-
|
| 1347 |
-
|
| 1348 |
-
|
| 1349 |
-
|
|
|
|
| 1350 |
|
| 1351 |
return (
|
| 1352 |
deployments_dataframe,
|
|
|
|
| 1333 |
|
| 1334 |
@app.cell
|
| 1335 |
def _(get_data_assets_button, get_repository_button, mo, purge_data_assets):
|
| 1336 |
+
deployments_dataframe = []
|
| 1337 |
+
data_assets_dataframe = []
|
| 1338 |
+
repository_dataframe = []
|
| 1339 |
+
|
| 1340 |
+
# Only try to update if the buttons exist and have values
|
| 1341 |
+
try:
|
| 1342 |
+
if 'get_deployments_button' in globals() and get_deployments_button.value is not None:
|
| 1343 |
+
deployments_dataframe = mo.ui.table(get_deployments_button.value, initial_selection=[0])
|
| 1344 |
+
except (NameError, AttributeError):
|
| 1345 |
+
pass
|
| 1346 |
|
| 1347 |
+
try:
|
| 1348 |
+
if 'get_data_assets_button' in globals() and get_data_assets_button.value is not None:
|
| 1349 |
+
data_assets_dataframe = mo.ui.table(get_data_assets_button.value, initial_selection=[0])
|
| 1350 |
+
except (NameError, AttributeError):
|
| 1351 |
+
pass
|
| 1352 |
|
| 1353 |
+
try:
|
| 1354 |
+
if 'get_repository_button' in globals() and get_repository_button.value is not None:
|
| 1355 |
+
repository_dataframe = mo.ui.table(get_repository_button.value, initial_selection=[0])
|
| 1356 |
+
except (NameError, AttributeError):
|
| 1357 |
+
pass
|
| 1358 |
|
| 1359 |
return (
|
| 1360 |
deployments_dataframe,
|