mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
get rid of unneccsary variable declartion
This commit is contained in:
parent
ed8d562917
commit
61377497ff
1 changed files with 1 additions and 8 deletions
|
|
@ -646,9 +646,7 @@ def handler(event, context, local=False):
|
|||
logger.info(f"Total postcodes: {len(postcode_to_addresses)}")
|
||||
|
||||
# Process each postcode group
|
||||
postcodes_processed = 0
|
||||
addresses_processed = 0
|
||||
uprns_found = 0
|
||||
|
||||
results_data = []
|
||||
|
||||
for postcode, postcode_rows in postcode_to_addresses.items():
|
||||
|
|
@ -691,7 +689,6 @@ def handler(event, context, local=False):
|
|||
# Parse result tuple if successful
|
||||
if result:
|
||||
uprn, found_address, score = result
|
||||
uprns_found += 1
|
||||
logger.info(
|
||||
f"Found UPRN for {user_input} in {postcode}: {uprn} (score: {score})"
|
||||
)
|
||||
|
|
@ -717,8 +714,6 @@ def handler(event, context, local=False):
|
|||
}
|
||||
)
|
||||
|
||||
addresses_processed += 1
|
||||
|
||||
except Exception as e:
|
||||
logger.error(
|
||||
f"Error processing address {row.get('user_input', 'unknown')}: {e}"
|
||||
|
|
@ -735,8 +730,6 @@ def handler(event, context, local=False):
|
|||
)
|
||||
continue
|
||||
|
||||
postcodes_processed += 1
|
||||
|
||||
# Create results DataFrame
|
||||
result_df = pd.DataFrame(results_data)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue