Validate payees

This commit is contained in:
Mark Veidemanis 2023-03-20 14:44:57 +00:00
parent 607eaef264
commit 1dd254a3a7
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 30 additions and 28 deletions

View File

@ -62,6 +62,7 @@ class LinkGroupInfo(LoginRequiredMixin, OTPRequiredMixin, ObjectRead):
pay_list = {} pay_list = {}
platform_pay_list = [] platform_pay_list = []
if "platform" in payees:
for payee in payees["platform"]: for payee in payees["platform"]:
cast = { cast = {
"name": payee.name, "name": payee.name,
@ -78,6 +79,7 @@ class LinkGroupInfo(LoginRequiredMixin, OTPRequiredMixin, ObjectRead):
platform_pay_list.append(cast) platform_pay_list.append(cast)
requisition_pay_list = [] requisition_pay_list = []
if "requisition" in payees:
for payee in payees["requisition"]: for payee in payees["requisition"]:
cast = { cast = {
"name": payee.name, "name": payee.name,