Commit 70ca0b7a authored by Zac Wood's avatar Zac Wood
Browse files

Added username to Slack Message

parent 62e4e340
Pipeline #5453 passed with stages
in 2 minutes and 14 seconds
...@@ -4,8 +4,9 @@ from threading import Thread ...@@ -4,8 +4,9 @@ from threading import Thread
def build_msg(request): def build_msg(request):
target = request.POST['target'] target = request.POST['target']
email = request.user.email
short = f'go.gmu.edu/{request.POST["short"]}' short = f'go.gmu.edu/{request.POST["short"]}'
return f'Short: {short}\nTarget: {target}' return f'User: {email}\nShort: {short}\nTarget: {target}'
def send_slack_message(msg): def send_slack_message(msg):
# Send slack message # Send slack message
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment