Update app.py to reflect latest changes in API routing and error handling

This commit is contained in:
Bryce
2025-11-09 19:47:09 -08:00
parent 903ffbbf42
commit 0d0d0554a6

2
app.py
View File

@@ -249,6 +249,8 @@ def dashboard(page=1):
end_time = time.time() end_time = time.time()
print(f"Retrieved {len(paginated_rows)} projects from Firestore (page {page} of {total_pages}) in {end_time - start_time:.2f}s") print(f"Retrieved {len(paginated_rows)} projects from Firestore (page {page} of {total_pages}) in {end_time - start_time:.2f}s")
from pprint import pprint
pprint([p['property_contacts'] for p in paginated_rows if p['property_contacts'].get('propertyManager1', None)])
# Render table with pagination data # Render table with pagination data
return render_template("dashboard.html", return render_template("dashboard.html",