Skip to content

Commit 42f74fe

Browse files
authored
add parking prefix back to the tables
1 parent 33b4267 commit 42f74fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/jobs/parking/parking_cycle_hangar_allocation_update.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
When asset_no like '%Bikehangar_1435%' Then 'Bikehangar_H1435'
5656
ELSE replace(asset_no, ' ','_')
5757
END as HangarID
58-
from "parking-raw-zone".parking_ops_cycle_hangar_list
58+
from "parking-raw-zone".parking_parking_ops_cycle_hangar_list
5959
WHERE import_Date = format_datetime(current_date, 'yyyyMMdd')
6060
AND asset_type = 'Hangar' AND lower(status) IN ('active', 'estate locked gate issue')
6161
/** 20-08-2024 add check for blank records **/
@@ -81,7 +81,7 @@
8181
unsubscribed_emails as (
8282
SELECT *,
8383
ROW_NUMBER() OVER ( PARTITION BY email_address ORDER BY email_address DESC) row1
84-
FROM "parking-raw-zone".parking_cycle_hangar_unsubscribed_emails
84+
FROM "parking-raw-zone".parking_parking_cycle_hangar_unsubscribed_emails
8585
WHERE import_date = (select max(import_date)
8686
from "parking-raw-zone".parking_cycle_hangar_unsubscribed_emails)),
8787

0 commit comments

Comments
 (0)