Skip to content

Commit

Permalink
12401 - pylint fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
pateash committed May 5, 2021
1 parent d55c15d commit 06d1932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/www/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3033,7 +3033,7 @@ def action_mulduplicate(self, connections, session=None):
new_conn_id = selected_conn.conn_id
match = re.search(r"_copy(\d+)$", selected_conn.conn_id)
if match:
conn_id_prefix = selected_conn.conn_id[:match.start()]
conn_id_prefix = selected_conn.conn_id[: match.start()]
new_conn_id = f"{conn_id_prefix}_copy{int(match.group(1)) + 1}"
else:
new_conn_id += '_copy1'
Expand Down

0 comments on commit 06d1932

Please sign in to comment.