Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sylviamclaughlin authored Dec 18, 2023
1 parent 779869a commit eb6c53d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/commands/incident.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,10 @@ def submit(ack, view, say, body, client, logger):
text = ":alphabet-yellow-question: Is someone `penetration or performance testing`? Please stop it to make your life easier."
say(text=text, channel=channel_id)


# Invite oncall to channel
for user in oncall:
# if the incident creator is also oncall, don't invite them again
if user is not user_id:
if user is not user_id:
client.conversations_invite(channel=channel_id, users=user["id"])

# Invite the @security users to channel
Expand Down
2 changes: 1 addition & 1 deletion app/tests/commands/test_incident.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ def test_incident_submit_pulls_oncall_people_into_the_channel(
]
)


@patch("commands.incident.google_drive.update_incident_list")
@patch("commands.incident.google_drive.merge_data")
@patch("commands.incident.google_drive.create_new_incident")
Expand Down

0 comments on commit eb6c53d

Please sign in to comment.