[WEB-2430] fix: issue exports for project (#5579)
* fix: issue exports for project * chore: code cleanup
This commit is contained in:
parent
bb49d27a84
commit
7013a36629
1 changed files with 13 additions and 5 deletions
|
|
@ -244,9 +244,13 @@ def update_json_row(rows, row):
|
||||||
)
|
)
|
||||||
assignee, label = row["Assignee"], row["Labels"]
|
assignee, label = row["Assignee"], row["Labels"]
|
||||||
|
|
||||||
if assignee is not None and assignee not in existing_assignees:
|
if assignee is not None and (
|
||||||
|
existing_assignees is None or label not in existing_assignees
|
||||||
|
):
|
||||||
rows[matched_index]["Assignee"] += f", {assignee}"
|
rows[matched_index]["Assignee"] += f", {assignee}"
|
||||||
if label is not None and label not in existing_labels:
|
if label is not None and (
|
||||||
|
existing_labels is None or label not in existing_labels
|
||||||
|
):
|
||||||
rows[matched_index]["Labels"] += f", {label}"
|
rows[matched_index]["Labels"] += f", {label}"
|
||||||
else:
|
else:
|
||||||
rows.append(row)
|
rows.append(row)
|
||||||
|
|
@ -266,9 +270,13 @@ def update_table_row(rows, row):
|
||||||
existing_assignees, existing_labels = rows[matched_index][7:9]
|
existing_assignees, existing_labels = rows[matched_index][7:9]
|
||||||
assignee, label = row[7:9]
|
assignee, label = row[7:9]
|
||||||
|
|
||||||
if assignee is not None and assignee not in existing_assignees:
|
if assignee is not None and (
|
||||||
rows[matched_index][7] += f", {assignee}"
|
existing_assignees is None or label not in existing_assignees
|
||||||
if label is not None and label not in existing_labels:
|
):
|
||||||
|
rows[matched_index][8] += f", {assignee}"
|
||||||
|
if label is not None and (
|
||||||
|
existing_labels is None or label not in existing_labels
|
||||||
|
):
|
||||||
rows[matched_index][8] += f", {label}"
|
rows[matched_index][8] += f", {label}"
|
||||||
else:
|
else:
|
||||||
rows.append(row)
|
rows.append(row)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue