Skip to content

Commit

Permalink
Merge pull request #65 from myarjunar/edit-parcel-error
Browse files Browse the repository at this point in the history
fix lambda function error when editing parcel
  • Loading branch information
mazano authored Apr 27, 2018
2 parents 02812b5 + d276f04 commit 7554ee8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion PyQt4Dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,9 @@ def populate_form(self, data):
"""
# get values
def checker(data, key):
return lambda data, key: data[key] if key in data.keys() else None
func = lambda data, key: data[key] if key in data.keys() else None
return func(data, key)

feat_id = checker(data, "parcel_id")
feat_sequence = checker(data, "sequence")
# use values
Expand Down

0 comments on commit 7554ee8

Please sign in to comment.