Skip to content

Commit

Permalink
empty tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
tom0827 committed Dec 20, 2023
1 parent bb643c1 commit 8a5595d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions epictrack-api/src/api/services/work_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ def edit_issue_update(cls, work_id, issue_id, issue_data):
if not issue_update_model:
raise ResourceNotFoundError("Issue Description doesnt exist")
if issue_update_model.is_approved:
one_of_roles = ([
KeycloakRole.EXTENDED_EDIT.value
])
one_of_roles = (
KeycloakRole.EXTENDED_EDIT.value,
)
authorisation.check_auth(one_of_roles=one_of_roles)
issue_update_model.description = update_description.get('description')
issue_update_model.flush()
Expand Down
6 changes: 3 additions & 3 deletions epictrack-api/src/api/services/work_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def update_work_status(cls, work_status: WorkStatusModel, work_status_data: dict
"""Update an existing work status."""
# TODO Add Super user check
if work_status.is_approved:
one_of_roles = ([
KeycloakRole.EXTENDED_EDIT.value
])
one_of_roles = (
KeycloakRole.EXTENDED_EDIT.value,
)
authorisation.check_auth(one_of_roles=one_of_roles)

work_status.update(work_status_data)
Expand Down

0 comments on commit 8a5595d

Please sign in to comment.