Skip to content

Commit 114c8a5

Browse files
committed
add status to mentor request submission
1 parent e769924 commit 114c8a5

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

pybot/endpoints/slack/actions/mentor_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async def mentor_request_submit(action: Action, app: SirBot):
3131
# debugging
3232
await slack.query(methods.CHAT_POST_MESSAGE, {
3333
'channel': action['channel']['id'],
34-
'text': f' Debugging: {json.dumps(airtable_response)}\nAirtable response: {json.dumps(airtable_response)}'
34+
'text': f' Debugging: {json.dumps(airtable_response)}'
3535
})
3636

3737

pybot/endpoints/slack/message_templates/mentor_request.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ def validate_self(self):
110110
async def submit_request(self, username, email, airtable: AirtableAPI):
111111
params = {
112112
'Slack User': username,
113-
'Email': email
113+
'Email': email,
114+
'Status': 'Available'
114115
}
115116
if self.skillsets:
116117
params['Skillsets'] = self.skillsets

0 commit comments

Comments
 (0)