Skip to content

Commit

Permalink
Merge pull request #40 from CityOfPhiladelphia/main
Browse files Browse the repository at this point in the history
removes business licenses that don't have addressed_license == Yes
  • Loading branch information
ajrothwell authored Nov 7, 2024
2 parents 806c399 + 3ae1d47 commit 4840f80
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/stores/LiStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,14 +417,14 @@ export const useLiStore = defineStore('LiStore', {

let query;
if (eclipse_location_id) {
query = `SELECT * FROM BUSINESS_LICENSES WHERE ( addressobjectid IN ('`+ eclipse_location_id +`') \
OR address = '${streetaddress}' \
OR parcel_id_num IN ( '${ pwd_parcel_id }' ) ) \
query = `SELECT * FROM BUSINESS_LICENSES WHERE ( addressobjectid IN ('`+ eclipse_location_id +`') AND addressed_license = 'Yes' \
OR address = '${streetaddress}' AND addressed_license = 'Yes' \
OR parcel_id_num IN ( '${ pwd_parcel_id }' ) AND addressed_license = 'Yes' ) \
${opaQuery } \
ORDER BY licensetype`;
} else {
query = `SELECT * FROM BUSINESS_LICENSES WHERE ( address = '${streetaddress}' \
OR parcel_id_num IN ( '${ pwd_parcel_id }' ) ) \
query = `SELECT * FROM BUSINESS_LICENSES WHERE ( address = '${streetaddress}' AND addressed_license = 'Yes' \
OR parcel_id_num IN ( '${ pwd_parcel_id }' ) AND addressed_license = 'Yes' ) \
${opaQuery } \
ORDER BY licensetype`;
}
Expand Down

0 comments on commit 4840f80

Please sign in to comment.