fix: leave_allocation variable not being defined (#29086)

This commit is contained in:
Vaibhav Chopra 2021-12-31 13:34:20 +05:30 committed by GitHub
parent 56b9ad8303
commit dbbc8d8aed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,9 +56,7 @@ class LeavePolicyAssignment(Document):
leave_policy_detail.leave_type, leave_policy_detail.annual_allocation,
leave_type_details, date_of_joining
)
leave_allocations[leave_policy_detail.leave_type] = {"name": leave_allocation, "leaves": new_leaves_allocated}
leave_allocations[leave_policy_detail.leave_type] = {"name": leave_allocation, "leaves": new_leaves_allocated}
self.db_set("leaves_allocated", 1)
return leave_allocations