Skip to content

Commit aae4641

Browse files
committed
[Flow] Fix variable name bug in gen_report()
- gen_report() in flow/util/genReport.py incorrectly referenced the global iteration variable 'd' instead of the function parameter 'data' on line 173. - Changed d['drcs'] to data['drcs'] to fix the logic bug. Signed-off-by: Vi-shub <smsharma3121@gmail.com>
1 parent 5c90465 commit aae4641

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎flow/util/genReport.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def gen_report(name, data):
170170
args.verbose - 2,
171171
)
172172

173-
if len(d["drcs"].keys()) > 0:
173+
if len(data["drcs"].keys()) > 0:
174174
if data["status"] == STATUS_GREEN:
175175
output += " Design has the violations under the allowed limit: "
176176
else:

0 commit comments

Comments
 (0)