Renamed a variable to prevent shadowing the outer variables in the sort_form_transaction_records() utility in the accounting application.
This commit is contained in:
parent
73c961cfee
commit
066fd1cb3f
@ -348,7 +348,7 @@ def sort_form_transaction_records(form):
|
||||
orders[no] = 9999
|
||||
except ValueError:
|
||||
orders[no] = 9999
|
||||
record_no[record_type].sort(key=lambda x: orders[x])
|
||||
record_no[record_type].sort(key=lambda n: orders[n])
|
||||
# Constructs the sorted new form
|
||||
new_form = {}
|
||||
for record_type in record_no.keys():
|
||||
|
Loading…
Reference in New Issue
Block a user