diff --git a/main.py b/main.py index bcbd65d..3829f48 100644 --- a/main.py +++ b/main.py @@ -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) @@ -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 }