Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions custom-recipes/googlesheets-append/recipe.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,19 @@
"mandatory": true,
"defaultValue": "append"
},
{
"name": "tab_id",
"label": "Sheet name (legacy)",
"description": "Legacy, please prefer using the \"Sheet name\" selector below",
"type": "STRING",
"visibilityCondition": "model.show_advanced_parameters==true || (model.tabs_ids==null && model.tab_id!=null && model.tab_id!='')"
},
{
"name": "tabs_ids",
"label": "Sheet name",
"type": "SELECT",
"getChoicesFromPython": true
},
{
"name": "tab_id",
"label": "Sheet name",
"description": "",
"type": "STRING",
"visibilityCondition": "model.show_advanced_parameters==true || (model.tabs_ids==null && model.tab_id!=null && model.tab_id!='') || (model.tabs_ids=='__dku_manual_select')"
},
{
"name": "insert_format",
"label": "Values interpretation",
Expand Down
2 changes: 2 additions & 0 deletions python-lib/googlesheets_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ def get_tab_ids(config):
legacy_tab_id = config.get("tab_id", None)
tabs_ids = config.get("tabs_ids")
tabs_ids = tabs_ids or []
if tabs_ids == "__dku_manual_select":
return [legacy_tab_id]
if type(tabs_ids) == str:
tabs_ids = [tabs_ids]
if not tabs_ids:
Expand Down
1 change: 1 addition & 0 deletions resource/browse_sheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def do(payload, config, plugin_config, inputs):
except Exception as error_message:
return build_select_choices("{}".format(error_message))
choices = []
choices.append({"label": "✍️ Enter manually", "value": "__dku_manual_select"})
for worksheet in worksheets:
worksheet_title = "{}".format(worksheet.title)
choices.append({
Expand Down