Skip to content

Commit

Permalink
Black format
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Mar 12, 2024
1 parent 1af1977 commit c5d4157
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/utils/jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,16 @@ def get_parent(jira_client: jira.client.JIRA, issue: jira.resources.Issue):
def get_blocks(jira_client: jira.client.JIRA, issue: jira.resources.Issue):
@cache.cache_on_arguments()
def _get_blocks(keys):
blocks = [
jira_client.issue(key)
for key in keys
]
blocks = [jira_client.issue(key) for key in keys]
return blocks
return _get_blocks([
il.raw["outwardIssue"]["key"]
for il in issue.fields.issuelinks
if il.type.name == "Blocks" and "outwardIssue" in il.raw.keys()
])

return _get_blocks(
[
il.raw["outwardIssue"]["key"]
for il in issue.fields.issuelinks
if il.type.name == "Blocks" and "outwardIssue" in il.raw.keys()
]
)


def get_children(jira_client: jira.client.JIRA, issue: jira.resources.Issue):
Expand Down

0 comments on commit c5d4157

Please sign in to comment.