diff --git a/backend/app/dependencies.py b/backend/app/dependencies.py index c78426bd..05bc0e27 100644 --- a/backend/app/dependencies.py +++ b/backend/app/dependencies.py @@ -95,10 +95,6 @@ def validate_jwt_token(token: str = Depends(oauth2_scheme)): async def validate_token(token: str = Depends(oauth2_scheme), request: Request = None): - logger.info("Validating token") - logger.info(token) - logger.info("Secret") - logger.info(get_settings().SECRET_KEY) token_data = validate_jwt_token(token) if not token_data: raise HTTPException( diff --git a/backend/app/plan/router.py b/backend/app/plan/router.py index 2efa1007..4f5b6148 100644 --- a/backend/app/plan/router.py +++ b/backend/app/plan/router.py @@ -23,7 +23,9 @@ async def trigger_plan(body: PlanTriggerRequest): bucket_name = get_settings().PLAN_TRIGGER_BUCKET plan_input = read_csv_from_s3(bucket_name=bucket_name, filepath=body.trigger_file_path) print(plan_input) + # TODO: Add validation to the file + print("What's the token") print(get_settings().EPC_AUTH_TOKEN) epc_client = EpcClient(auth_token=get_settings().EPC_AUTH_TOKEN) @@ -38,10 +40,12 @@ async def trigger_plan(body: PlanTriggerRequest): p.set_year_built() logger.info("Parsing and validating the file") - # TODO: Add validation + logger.info("properties") logger.info(input_properties) + # TODO: get co-ordinates + logger.info("Reading in EPC data") return {"message": "Plan triggered"} diff --git a/model_data/app.py b/model_data/app.py index 7b4f057e..254bfbe0 100644 --- a/model_data/app.py +++ b/model_data/app.py @@ -1,4 +1,3 @@ -import pandas as pd from tqdm import tqdm import os from model_data.BoreholeClient import BoreholeClient