Skip to content

Commit

Permalink
Merge pull request #30 from rodekruis/revert-29-chore.small_fixes
Browse files Browse the repository at this point in the history
Revert "update logging kobo-to-121"
  • Loading branch information
tijsziere authored Mar 29, 2024
2 parents 05962dd + ad89354 commit c3b99e9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,12 +390,11 @@ async def kobo_to_121(request: Request, dependencies=Depends(required_headers_12
json=[payload]
)
target_response = response.content.decode("utf-8")

logger.info(target_response)

if response.status_code != 201:
logger.error("wrong request: ", response.status_code, target_response)
if "debug" in request.headers.items():
logger.info(payload)

logger.info(target_response)

return JSONResponse(status_code=response.status_code, content=target_response)

Expand Down Expand Up @@ -566,7 +565,6 @@ async def create_121_program_from_kobo(request: Request, dependencies=Depends(re
],
"enableMaxPayments": lookupdict['enableMaxPayments'].upper() == 'TRUE',
"allowEmptyPhoneNumber": False,
"budget": lookupdict['budget']
"enableScope": False
}

Expand Down

0 comments on commit c3b99e9

Please sign in to comment.