Spaces:
Running
Running
Chest Pain
v1.9: new DOB Stalled tab - paginate full 1.4M dataset, dedupe by complaint_number, 18-month filter on complaint date
ee15e2d
| # config.py | |
| import os | |
| # ---- API / env ---- | |
| SOCRATA_APP_TOKEN = os.getenv("SOCRATA_APP_TOKEN", "").strip() | |
| # ---- App identity ---- | |
| APP_NAME = "BuildScout" | |
| APP_VERSION = "1.9" | |
| # ---- Default data / UI behavior ---- | |
| DEFAULT_PAGE_SIZE = int(os.getenv("DEFAULT_PAGE_SIZE", "200")) | |
| DEFAULT_DAYS_WINDOW = int(os.getenv("DEFAULT_DAYS_WINDOW", "90")) | |
| # Per Peter's requirements: We only focus on MN/BK/QN | |
| ALLOWED_BOROUGHS = {"MANHATTAN", "BROOKLYN", "QUEENS"} | |
| # Initial column set (shown if present) | |
| DEFAULT_VISIBLE_COLUMNS = [ | |
| "filing_date", | |
| "borough", | |
| "full_address", | |
| "street_name", | |
| "house_no", | |
| "block", | |
| "lot", | |
| "job_filing_number", | |
| "job_type", | |
| "filing_status", | |
| "job_status", | |
| "job_status_descrp", | |
| "job_description", | |
| "permit_type", | |
| ] | |
| # Datasets supported (internal keys -> labels) - for Leads & Filings tab | |
| DATASETS = [ | |
| ("leads_unpermitted", "Sales Leads β Filings without Permit (last 90 days)"), | |
| ("job_filings", "DOB NOW β Job Filings (w9ak-ipjd)"), | |
| ("permit_issuance", "Permit Issuance β BIS (rbx6-tga4)"), | |
| ("electrical_permits","DOB NOW β Electrical Permit Applications (dm9a-ab7w)"), | |
| ] |