[flake8]
-ignore = E251, E305, E302, W503
+ignore = E251, E305, E302, W503, E201, E202
from turbot.blocks import input_block
-import uuid
import turbot.sheets
def new_hunt(turb, payload):
"submit": { "type": "plain_text", "text": "Create" },
"blocks": [
input_block("Hunt name", "name", "Name of the hunt"),
- input_block("Hunt ID", "slug", "Short prefix for hunt (no spaces)"),
+ input_block("Hunt ID", "slug", "Short hunt prefix (no spaces)"),
input_block("Hunt URL", "url", "External URL of hunt")
],
}
channel_id = response['channel']['id']
# Create a sheet for the channel
- sheet = turbot.sheets.sheets_create(turb, slug)
+ turbot.sheets.sheets_create(turb, slug)
# Insert the newly-created hunt into the database
turb.hunts_table = turb.db.Table("hunts")
-from turbot.blocks import section_block, text_block, button_block, actions_block
+from turbot.blocks import (
+ section_block, text_block, button_block, actions_block
+)
def hunt_block(hunt):
name = hunt['name']
print("Storing refreshed GSheets credentials into SSM")
ssm.put_parameter(Name='GSHEETS_PICKLE_BASE64',
Type='SecureString',
- Value=gsheets_pickle_base64,
+ Value=str(gsheets_pickle_base64),
Overwrite=True)
service = build('sheets',
'v4',