#NEWLINE# def map_fields( self , api , establishment ) : #NEWLINE# #INDENT# "Map CSV field names from Durham's API to our database schema" #NEWLINE# return { #NEWLINE# #INDENT# 'external_id' : api [ 'Id' ] , #NEWLINE# 'establishment' : establishment . id , #NEWLINE# 'date' : api [ 'Insp_Date' ] , #NEWLINE# 'type' : api [ 'Insp_Type' ] , #NEWLINE# 'score' : api [ 'Score_SUM' ] , #NEWLINE# 'description' : api [ 'Comments' ] , #NEWLINE# 'update_date' : api [ 'Update_Date' ] , #NEWLINE# #UNINDENT# }