]> git.cworth.org Git - turbot/blobdiff - turbot_lambda/turbot_lambda.py
Edit the help messages for "new" and "edit"
[turbot] / turbot_lambda / turbot_lambda.py
index aa88339244872125a92e48a530c1e5cd8fb4bbc2..1aa428fa95c0740d05c8aa3368877479a07f66ea 100644 (file)
@@ -59,6 +59,7 @@ service = build('drive',
                 'v3',
                 credentials=gsheets_creds,
                 cache_discovery=False)
+files = service.files()
 permissions = service.permissions()
 
 db = boto3.resource('dynamodb')
@@ -68,6 +69,7 @@ turb.slack_client = slack_client
 turb.db = db
 turb.table = db.Table("turbot")
 turb.sheets = sheets
+turb.files = files
 turb.permissions = permissions
 
 def error(message):
@@ -199,7 +201,10 @@ def turbot_block_action(turb, payload):
     action = actions[0]
 
     atype = action['type']
-    avalue = action['value']
+    if 'value' in action:
+        avalue = action['value']
+    else:
+        avalue = '*'
 
     if (
             atype in turbot.interaction.actions