From e2637ca11c853b4e44d98a1f6190a4b2f9cfe79e Mon Sep 17 00:00:00 2001 From: Aden Sattler Date: Tue, 2 Jul 2024 16:33:48 -0600 Subject: [PATCH] disabled nearby home api call --- Main/app.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Main/app.py b/Main/app.py index 7e7ef81..99873e4 100644 --- a/Main/app.py +++ b/Main/app.py @@ -91,11 +91,13 @@ def property_search(): # Add property data to the database database.insert_property_db(zpid, data.text) - try: - url = database.add_nearby_homes(zpid) - print(get_listings_nearby(url,API_KEY)) - except: - print("nearby homes already in DB") + + # ENABLE NEARBY SEARCH (DISABLE TO CONSERVE API TOKENS) + # try: + # url = database.add_nearby_homes(zpid) + # print(get_listings_nearby(url,API_KEY)) + # except: + # print("nearby homes already in DB") evaluationFunctions.PriceRelativeArea(zpid, database.get_value_from_property_db(zpid,"price"),database.get_value_from_property_db(zpid,"zipcode")) # Redirect the user to the property page on submission