Skip to content

Commit 7ca99fe

Browse files
committed
Read TIP_ID field in MRN
1 parent 37a9cc1 commit 7ca99fe

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/update_highway_project_years.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,12 @@ def get_trans_proj_scens(table):
195195
tipid_scens = {}
196196

197197
# Iterate through headers with valid TIPIDs & scenarios
198-
fields = ['NOTES', 'SCENARIO']
199-
sql = ''' "NOTES" LIKE '%__-__-____%' AND "SCENARIO" NOT IN ('9') '''
198+
if table == mrn_future_fc:
199+
fields = ['TIP_ID', 'SCENARIO']
200+
sql = ''' "TIP_ID" LIKE '%__-__-____%' AND "SCENARIO" NOT IN ('9') '''
201+
else:
202+
fields = ['NOTES', 'SCENARIO']
203+
sql = ''' "NOTES" LIKE '%__-__-____%' AND "SCENARIO" NOT IN ('9') '''
200204
with arcpy.da.SearchCursor(table, fields, sql) as cursor:
201205
for row in cursor:
202206

0 commit comments

Comments
 (0)