Skip to content

Commit

Permalink
disabled nearby home api call
Browse files Browse the repository at this point in the history
  • Loading branch information
adensattler committed Jul 2, 2024
1 parent e5f0d2f commit e2637ca
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Main/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e2637ca

Please sign in to comment.