-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Major Project Slack Bot #361
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Questions + 1 nit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works, just wanna see this change so its easier for us to see who it is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, please make sure it is passing pylint check. Download pylint and run it before committing
@@ -65,7 +70,7 @@ def submit_major_project(user_dict=None): | |||
return jsonify({"success": False}), 400 | |||
project = MajorProject(user_dict['username'], name, description) | |||
|
|||
send_slack_ping({"text":f"<!subteam^S5XENJJAH> {user_dict['username']} submitted their major project, *{name}*!"}) | |||
send_slack_ping({"text":f"<!subteam^S5XENJJAH> {context_processors.get_member_name(user_dict['username'])} *{user_dict['username']}* submitted their major project, *{name}*!"}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You shouldn't need to specify context_processors
if you did what you did on line 1... should be able to just do get_member_name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also nit on the formatting, I think it would be easier to read if the username was in parentheses, not boldened. We know people by name first and the username is extra into
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm, sending to dev
Fixes #359 |
No description provided.