Skip to content

Commit

Permalink
Update routes121.py
Browse files Browse the repository at this point in the history
Release for training has been done
  • Loading branch information
smeber authored Dec 11, 2024
1 parent 63976a6 commit dede429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/routes121.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async def kobo_to_121(request: Request, dependencies=Depends(required_headers_12
payload[target_field] = int(kobo_data[kobo_field])
elif target_field == "scope":
payload[target_field] = clean_text(kobo_data[kobo_field])
elif target_field == "fspName" and "nlrc.121.global" not in request.headers["url121"] and "training.121.global" not in request.headers["url121"]:
elif target_field == "fspName" and "nlrc.121.global" not in request.headers["url121"]:
payload["programFinancialServiceProviderConfigurationName"] = kobo_data[kobo_field]
elif kobo_value_url not in attachments.keys():
payload[target_field] = kobo_data[kobo_field]
Expand All @@ -91,7 +91,7 @@ async def kobo_to_121(request: Request, dependencies=Depends(required_headers_12
access_token = login121(request.headers["url121"], request.headers["username121"], request.headers["password121"])


if 'nlrc.121.global' in request.headers['url121'] or 'training.121.global' in request.headers['url121']:
if 'nlrc.121.global' in request.headers['url121']:
url = f"{request.headers['url121']}/api/programs/{programid}/registrations/import"
else:
url = f"{request.headers['url121']}/api/programs/{programid}/registrations"
Expand Down

0 comments on commit dede429

Please sign in to comment.