From 3343e27834ff5b2510f5b3cebe641efbfe9ad69f Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Sat, 30 Dec 2023 21:01:21 +0000 Subject: [PATCH] remove os from plan router --- backend/OrdnanceSurvey.py | 3 --- backend/app/plan/router.py | 1 - 2 files changed, 4 deletions(-) diff --git a/backend/OrdnanceSurvey.py b/backend/OrdnanceSurvey.py index afb57620..156e72bf 100644 --- a/backend/OrdnanceSurvey.py +++ b/backend/OrdnanceSurvey.py @@ -37,9 +37,6 @@ class OrdnanceSuveyClient: response = requests.get(url) if response.status_code == 200: data = response.json() - - # Extract the UPRN from the data - # Note: This example assumes that the first result is the correct one, which might not always be the case. results = data['results'] self.results = results else: diff --git a/backend/app/plan/router.py b/backend/app/plan/router.py index 4100e47d..209bb2b9 100644 --- a/backend/app/plan/router.py +++ b/backend/app/plan/router.py @@ -3,7 +3,6 @@ from datetime import datetime import numpy as np import pandas as pd from epc_api.client import EpcClient -from backend.OrdnanceSurvey import OrdnanceSuveyClient from fastapi import APIRouter, Depends from sqlalchemy.exc import IntegrityError, OperationalError from sqlalchemy.orm import sessionmaker