Skip to content

Commit

Permalink
wip filter not working yet
Browse files Browse the repository at this point in the history
  • Loading branch information
zheyichn committed Jun 13, 2024
1 parent c6472ae commit 1dcb8a6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
6 changes: 3 additions & 3 deletions data/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ services:
- GOOGLE_CLOUD_BUCKET_NAME
- CAGP_SLACK_API_TOKEN
volumes:
- ./src:/usr/src/app
- ./src:/usr/src/app # is this the line to change? #
- ~/.config/gcloud/application_default_credentials.json:/app/service-account-key.json
extra_hosts:
extra_hosts:
- host.docker.internal:host-gateway

formatter:
Expand All @@ -29,7 +29,7 @@ services:
- CLEAN_GREEN_GOOGLE_KEY
- VACANT_LOTS_DB
- GOOGLE_CLOUD_BUCKET_NAME

volumes:
- ./src:/usr/src/app
- ~/.config/gcloud/application_default_credentials.json:/app/service-account-key.json
Expand Down
4 changes: 2 additions & 2 deletions data/src/data_utils/llc_owner.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ def llc_owner(primary_featurelayer):

# Checking if " llc" is in either owner1 or owner2
if " llc" in owner1 or " llc" in owner2:
llc_owners.append("Yes")
llc_owners.append("Business")
else:
llc_owners.append("No")
llc_owners.append("Individual")

primary_featurelayer.gdf["llc_owner"] = llc_owners
return primary_featurelayer
14 changes: 10 additions & 4 deletions src/components/FilterView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { BarClickOptions } from "@/app/find-properties/[[...opa_id]]/page";
import { ThemeButton } from "./ThemeButton";
import { rcos, neighborhoods, zoning } from "./Filters/filterOptions";


const filters = [
{
property: "priority_level",
Expand All @@ -16,7 +15,14 @@ const filters = [
{
property: "get_access",
display: "Get Access",
options: ["TACTICAL_URBANISM", "PRIVATE_LAND_USE", "BUY_FROM_OWNER", "SIDE_YARD", "LAND_BANK", "CONSERVATORSHIP"],
options: [
"TACTICAL_URBANISM",
"PRIVATE_LAND_USE",
"BUY_FROM_OWNER",
"SIDE_YARD",
"LAND_BANK",
"CONSERVATORSHIP",
],
type: "panels",
},
{
Expand All @@ -40,14 +46,14 @@ const filters = [
},
{
property: "parcel_type",
display: "Parcel Type",
display: "Property Type",
options: ["Land", "Building"],
type: "buttonGroup",
},
{
property: "llc_owner",
display: "LLC Owner",
options: ["Yes", "No"],
options: ["Business", "Individual"],
type: "buttonGroup",
},
];
Expand Down

0 comments on commit 1dcb8a6

Please sign in to comment.