Closed louking closed 8 years ago
I have a join among several tables. I want to return a calculated value which is based on different tables, but the following raises exception
ColumnDT('race.date',filter=lambda c: timeu.age(c,runner.dob)),
In this case I want to calculate a runner's age on race date, but runner is not defined, getting
NameError: free variable 'runner' referenced before assignment in enclosing scope
Is there some technique I can use to achieve my goal?
I have a join among several tables. I want to return a calculated value which is based on different tables, but the following raises exception
In this case I want to calculate a runner's age on race date, but runner is not defined, getting
Is there some technique I can use to achieve my goal?