Skip to content

Commit b560ee4

Browse files
zacharybrown204paulo-filho-ctr
authored andcommitted
9521 - Small tweaks to report scripts.
Get distinct missing geocodes because of a data issue. Add more logging to report script
1 parent cc8b8a7 commit b560ee4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

scripts/geocoding/backfillUserGeocodes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ const getUsersMissingGeocode = async (
4848
sql<string>`petitioner ->> 'city'`.as('city'),
4949
sql<string>`petitioner ->> 'postalCode'`.as('zip'),
5050
])
51+
.distinct()
5152
.limit(limit);
5253
if (fromDateIso)
5354
query = query.where('c.receivedAt', '>=', getJsDateFromIso(fromDateIso));

scripts/reports/petitioner-geodata.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ const exportGeodata = async () => {
163163

164164
if (backfillData) await backfillUserGeocodes({ fromDateIso, toDateIso });
165165

166+
console.log('Generating report...');
166167
const userGeodata = (
167168
await getPetitionerGeodata({
168169
fromDateIso,

0 commit comments

Comments
 (0)