-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into add-workflow-to-gen-data
- Loading branch information
Showing
8 changed files
with
252 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
# Usage: ./bin/fix-pending [database name] [table name] | ||
# ./bin/fix-pending disclosure-backend A-Contributions | ||
set -euo pipefail | ||
|
||
if [ $# -ne 2 ]; then | ||
echo 'Usage: ./bin/fix-pending [database name] [table name]' | ||
exit 1 | ||
fi | ||
|
||
database_name=$1 | ||
table_name=$2 | ||
|
||
cat <<-QUERY | psql ${database_name} | ||
\\set ON_ERROR_STOP on | ||
UPDATE "$table_name" t SET "Filer_ID" = "FPPC" | ||
from candidates | ||
WHERE lower(t."Filer_ID"::varchar(9)) = 'pending' | ||
AND t."Filer_NamL" = "Committee_Name" | ||
AND has_pending; | ||
QUERY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,181 @@ | ||
{ | ||
"total_contributions": 0, | ||
"total_contributions": 5600.0, | ||
"contributions": [ | ||
|
||
{ | ||
"Filer_ID": "1463520", | ||
"Tran_Emp": "Oakland Unified schools", | ||
"Tran_Occ": "Administrator as needed", | ||
"Entity_Cd": "Individual", | ||
"Tran_Amt1": 100.0, | ||
"Tran_Date": "2023-10-04", | ||
"Tran_NamF": "Maureen", | ||
"Tran_NamL": "Hartney", | ||
"Tran_Zip4": "94602" | ||
}, | ||
{ | ||
"Filer_ID": "1463520", | ||
"Tran_Emp": "Salesforce", | ||
"Tran_Occ": "Decision Scientist", | ||
"Entity_Cd": "Individual", | ||
"Tran_Amt1": 100.0, | ||
"Tran_Date": "2023-10-04", | ||
"Tran_NamF": "Brandon", | ||
"Tran_NamL": "Wall", | ||
"Tran_Zip4": "94602-1146" | ||
}, | ||
{ | ||
"Filer_ID": "1463520", | ||
"Tran_Emp": "Rogers Family Foundation", | ||
"Tran_Occ": "NONPROFIT", | ||
"Entity_Cd": "Individual", | ||
"Tran_Amt1": 100.0, | ||
"Tran_Date": "2023-10-05", | ||
"Tran_NamF": "Sara", | ||
"Tran_NamL": "Levine", | ||
"Tran_Zip4": "94610" | ||
}, | ||
{ | ||
"Filer_ID": "1463520", | ||
"Tran_Emp": "Not Employed", | ||
"Tran_Occ": "Not Employed", | ||
"Entity_Cd": "Individual", | ||
"Tran_Amt1": 100.0, | ||
"Tran_Date": "2023-10-06", | ||
"Tran_NamF": "Steven", | ||
"Tran_NamL": "Fajardo", | ||
"Tran_Zip4": "94608" | ||
}, | ||
{ | ||
"Filer_ID": "1463520", | ||
"Tran_Emp": "Momentive", | ||
"Tran_Occ": "Lawyer", | ||
"Entity_Cd": "Individual", | ||
"Tran_Amt1": 100.0, | ||
"Tran_Date": "2023-10-06", | ||
"Tran_NamF": "Nina", | ||
"Tran_NamL": "Senn", | ||
"Tran_Zip4": "94611" | ||
}, | ||
{ | ||
"Filer_ID": "1463520", | ||
"Tran_Emp": "Donahue Fitzgerald LLP", | ||
"Tran_Occ": "Attorney", | ||
"Entity_Cd": "Individual", | ||
"Tran_Amt1": 100.0, | ||
"Tran_Date": "2023-10-06", | ||
"Tran_NamF": "David", | ||
"Tran_NamL": "Stein", | ||
"Tran_Zip4": "94501" | ||
}, | ||
{ | ||
"Filer_ID": "1463520", | ||
"Tran_Emp": "City of Oakland", | ||
"Tran_Occ": "Policy Analyst", | ||
"Entity_Cd": "Individual", | ||
"Tran_Amt1": 100.0, | ||
"Tran_Date": "2023-10-07", | ||
"Tran_NamF": "Caleb", | ||
"Tran_NamL": "Smith", | ||
"Tran_Zip4": "94610" | ||
}, | ||
{ | ||
"Filer_ID": "1463520", | ||
"Tran_Emp": "Self Employed", | ||
"Tran_Occ": "Handyman", | ||
"Entity_Cd": "Individual", | ||
"Tran_Amt1": 600.0, | ||
"Tran_Date": "2023-10-10", | ||
"Tran_NamF": "Ricky", | ||
"Tran_NamL": "Cantu", | ||
"Tran_Zip4": "77339" | ||
}, | ||
{ | ||
"Filer_ID": "1463520", | ||
"Tran_Emp": "Self Employed", | ||
"Tran_Occ": "Self Employed", | ||
"Entity_Cd": "Individual", | ||
"Tran_Amt1": 600.0, | ||
"Tran_Date": "2023-10-10", | ||
"Tran_NamF": "Emmanuel", | ||
"Tran_NamL": "Gomez", | ||
"Tran_Zip4": "94601" | ||
}, | ||
{ | ||
"Filer_ID": "1463520", | ||
"Tran_Emp": "Retired", | ||
"Tran_Occ": "Retired", | ||
"Entity_Cd": "Individual", | ||
"Tran_Amt1": 600.0, | ||
"Tran_Date": "2023-10-10", | ||
"Tran_NamF": "Onaida", | ||
"Tran_NamL": "Lerma", | ||
"Tran_Zip4": "94602" | ||
}, | ||
{ | ||
"Filer_ID": "1463520", | ||
"Tran_Emp": "Self Employed", | ||
"Tran_Occ": "Self Employed", | ||
"Entity_Cd": "Individual", | ||
"Tran_Amt1": 600.0, | ||
"Tran_Date": "2023-10-10", | ||
"Tran_NamF": "Jose", | ||
"Tran_NamL": "Robledo", | ||
"Tran_Zip4": "89122" | ||
}, | ||
{ | ||
"Filer_ID": "1463520", | ||
"Tran_Emp": "Self Employed", | ||
"Tran_Occ": "student", | ||
"Entity_Cd": "Individual", | ||
"Tran_Amt1": 600.0, | ||
"Tran_Date": "2023-10-10", | ||
"Tran_NamF": "Maassa", | ||
"Tran_NamL": "Zamora", | ||
"Tran_Zip4": "94601" | ||
}, | ||
{ | ||
"Filer_ID": "1463520", | ||
"Tran_Emp": "Oakland Unified Public Schools", | ||
"Tran_Occ": "Education District Leader", | ||
"Entity_Cd": "Individual", | ||
"Tran_Amt1": 200.0, | ||
"Tran_Date": "2023-10-11", | ||
"Tran_NamF": "Leroy", | ||
"Tran_NamL": "Gaines", | ||
"Tran_Zip4": "94518" | ||
}, | ||
{ | ||
"Filer_ID": "1463520", | ||
"Tran_Emp": "La Clinica de la Raza", | ||
"Tran_Occ": "Nurse Practitioner", | ||
"Entity_Cd": "Individual", | ||
"Tran_Amt1": 600.0, | ||
"Tran_Date": "2023-10-16", | ||
"Tran_NamF": "Maria", | ||
"Tran_NamL": "Massella", | ||
"Tran_Zip4": "94606" | ||
}, | ||
{ | ||
"Filer_ID": "1463520", | ||
"Tran_Emp": "HP Investors LLC", | ||
"Tran_Occ": "Finance", | ||
"Entity_Cd": "Individual", | ||
"Tran_Amt1": 600.0, | ||
"Tran_Date": "2023-10-17", | ||
"Tran_NamF": "Isaac", | ||
"Tran_NamL": "Abid", | ||
"Tran_Zip4": "94611" | ||
}, | ||
{ | ||
"Filer_ID": "1463520", | ||
"Tran_Emp": "RCR Inc.", | ||
"Tran_Occ": "Business Owner", | ||
"Entity_Cd": "Individual", | ||
"Tran_Amt1": 500.0, | ||
"Tran_Date": "2023-10-20", | ||
"Tran_NamF": "Blanca", | ||
"Tran_NamL": "Perez", | ||
"Tran_Zip4": "94542" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters