♻️ (flows.py): rename loop variable flow to _flow to avoid shadowing and improve readability
This commit is contained in:
parent
496f4f6b91
commit
fa4dd19ce6
1 changed files with 2 additions and 2 deletions
|
|
@ -49,8 +49,8 @@ def create_flow(
|
||||||
if flows:
|
if flows:
|
||||||
extract_number = re.compile(r"\((\d+)\)$")
|
extract_number = re.compile(r"\((\d+)\)$")
|
||||||
numbers = []
|
numbers = []
|
||||||
for flow in flows:
|
for _flow in flows:
|
||||||
result = extract_number.search(flow.name)
|
result = extract_number.search(_flow.name)
|
||||||
if result:
|
if result:
|
||||||
numbers.append(int(result.groups(1)[0]))
|
numbers.append(int(result.groups(1)[0]))
|
||||||
if numbers:
|
if numbers:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue