From 37bd18642b3b1ed54f880eb55558b9697d99c3a8 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 1 Oct 2024 19:39:20 +0100 Subject: [PATCH] debugging eon asset list --- etl/customers/eon/pilot_asset_list.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/etl/customers/eon/pilot_asset_list.py b/etl/customers/eon/pilot_asset_list.py index afed61e4..aca0884c 100644 --- a/etl/customers/eon/pilot_asset_list.py +++ b/etl/customers/eon/pilot_asset_list.py @@ -2,12 +2,11 @@ import time import pandas as pd -from utils.s3 import read_excel_from_s3 from backend.SearchEpc import SearchEpc from dotenv import load_dotenv import os from tqdm import tqdm -from utils.s3 import save_csv_to_s3 +from utils.s3 import save_csv_to_s3, read_excel_from_s3 # Read in the .env file in backend load_dotenv(dotenv_path="backend/.env") @@ -181,7 +180,10 @@ def app(): ) searcher.find_property(skip_os=True) - uprn = searcher.uprn + if searcher.newest_epc["uprn-source"] == SearchEpc.UPRN_SOURCE_SIMULATED: + uprn = None + else: + uprn = searcher.uprn # searcher.find_property(skip_os=False) asset_list_with_uprn.append(