Skip to content

Commit c368b3b

Browse files
committed
replace
1 parent e4622cc commit c368b3b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

conditional/blueprints/major_project_submission.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,14 @@ def submit_major_project(user_dict=None):
7373
project = MajorProject(user_dict["username"], name, description)
7474

7575
# Don't you dare try pinging @channel
76-
if "<!" in name:
77-
name = "<! ".join(name.split("<!"))
76+
name = name.replace("<!", "<! ")
7877

79-
username = user_dict['username']
78+
username = user_dict["username"]
8079
send_slack_ping(
81-
{
82-
"text":f"<!subteam^S5XENJJAH> *{get_member_name(username)}* ({username})"
83-
f" submitted their major project, *{name}*!"
84-
}
80+
{
81+
"text": f"<!subteam^S5XENJJAH> *{get_member_name(username)}* ({username})"
82+
f" submitted their major project, *{name}*!"
83+
}
8584
)
8685
db.session.add(project)
8786
db.session.commit()

0 commit comments

Comments
 (0)