Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
whitdog47 committed Sep 22, 2023
1 parent 1cc483e commit 7a481bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/dispatch/auth/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,10 @@ def has_required_permissions(
if not current_incident:
return False

if current_incident.commander and current_incident.commander.individual.email == current_user.email:
if (
current_incident.commander
and current_incident.commander.individual.email == current_user.email
):
return True

scribes = [
Expand Down
4 changes: 1 addition & 3 deletions src/dispatch/incident/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,7 @@ def create_custom_event(
current_user: CurrentUser,
background_tasks: BackgroundTasks,
):
event_in.details.update(
{"created_by": current_user.email, "added_on": str(datetime.utcnow())}
)
event_in.details.update({"created_by": current_user.email, "added_on": str(datetime.utcnow())})
"""Creates a custom event."""
background_tasks.add_task(
event_flows.log_incident_event,
Expand Down

0 comments on commit 7a481bb

Please sign in to comment.