Skip to content

Commit

Permalink
remove old url
Browse files Browse the repository at this point in the history
  • Loading branch information
tijsziere committed Dec 16, 2024
1 parent 387c580 commit 0b36907
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions routes/routes121.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,8 @@ 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']:
url = f"{request.headers['url121']}/api/programs/{programid}/registrations/import"
else:
url = f"{request.headers['url121']}/api/programs/{programid}/registrations"
url = f"{request.headers['url121']}/api/programs/{programid}/registrations"

# POST to 121 import endpoint
import_response = requests.post(
url,
Expand Down

0 comments on commit 0b36907

Please sign in to comment.