@@ -51,6 +51,7 @@ class Series(Base):
5151 variable_id = Column ('VariableID' , Integer , ForeignKey ('Variables.VariableID' ), nullable = False )
5252 variable_code = Column ('VariableCode' , String )
5353 variable_name = Column ('VariableName' , String )
54+
5455 speciation = Column ('Speciation' , String )
5556 variable_units_id = Column ('VariableUnitsID' , Integer )
5657 variable_units_name = Column ('VariableUnitsName' , String )
@@ -118,26 +119,29 @@ def get_table_columns(self):
118119 return self .__table__ .columns .keys ()
119120
120121 def list_repr (self ):
121- return [self .id , self .site_id , self .site_code , self .site_name , self .variable_id , self .variable_code ,
122+ return [self .id , self .site_code , self .variable_code , self .quality_control_level_code ,
123+ self .site_id , self .site_name , self .variable_id ,
122124 self .variable_name , self .speciation , self .variable_units_id , self .variable_units_name ,
123125 self .sample_medium , self .value_type , self .time_support , self .time_units_id , self .time_units_name ,
124126 self .data_type , self .general_category , self .method_id , self .method_description ,
125127 self .source_id , self .source_description , self .organization , self .citation ,
126- self .quality_control_level_id , self . quality_control_level_code , self .begin_date_time ,
128+ self .quality_control_level_id , self .begin_date_time ,
127129 self .end_date_time , self .begin_date_time_utc , self .end_date_time_utc , self .value_count ]
128130
129131def returnDict ():
130- keys = ['SeriesID' , 'SiteID' , 'SiteCode' , 'SiteName' , 'VariableID' , 'VariableCode' , 'VariableName' , 'Speciation' ,
132+ keys = ['SeriesID' , 'SiteCode' ,'VariableCode' ,'QualityControlLevelCode' ,
133+ 'SiteID' , 'SiteName' , 'VariableID' , 'VariableName' , 'Speciation' ,
131134 'VariableUnitsID' , 'VariableUnitsName' , 'SampleMedium' , 'ValueType' , 'TimeSupport' , 'TimeUnitsID' ,
132135 'TimeUnitsName' , 'DataType' , 'GeneralCategory' , 'MethodID' , 'MethodDescription' , 'SourceID' ,
133- 'SourceDescription' , 'Organization' , 'Citation' , 'QualityControlLevelID' , 'QualityControlLevelCode' ,
136+ 'SourceDescription' , 'Organization' , 'Citation' , 'QualityControlLevelID' ,
134137 'BeginDateTime' , 'EndDateTime' , 'BeginDateTimeUTC' , 'EndDateTimeUTC' , 'ValueCount'
135138 ]
136- values = ['id' , 'site_id' , 'site_code' , 'site_name' , 'variable_id' , 'variable_code' , 'variable_name' , 'speciation' ,
139+ values = ['id' , 'site_code' ,'variable_code' ,'quality_control_level_code' ,
140+ 'site_id' , 'site_name' , 'variable_id' , 'variable_name' , 'speciation' ,
137141 'variable_units_id' , 'variable_units_name' , 'sample_medium' , 'value_type' , 'time_support' ,
138142 'time_units_id' , 'time_units_name' , 'data_type' , 'general_category' , 'method_id' , 'method_description' ,
139143 'source_id' , 'source_description' , 'organization' , 'citation' , 'quality_control_level_id' ,
140- 'quality_control_level_code' , 'begin_date_time' , 'end_date_time' , 'begin_date_time_utc' ,
144+ 'begin_date_time' , 'end_date_time' , 'begin_date_time_utc' ,
141145 'end_date_time_utc' , 'value_count'
142146 ]
143147 return OrderedDict (zip (keys , values ))
0 commit comments