@@ -968,7 +968,9 @@ class Dataloggerfilecolumns(models.Model):
968968 verbose_name = "instrument output variable" ,
969969 db_column = 'instrumentoutputvariableid' )
970970 columnlabel = models .CharField (verbose_name = "column label" , max_length = 50 )
971- columndescription = models .CharField (verbose_name = "column description" , max_length = 5000 ,
971+ columndescription = models .CharField (verbose_name = "column description" ,
972+ help_text = "To disble ingestion of a column type 'skip'" ,
973+ max_length = 5000 ,
972974 blank = True )
973975 measurementequation = models .CharField (verbose_name = "measurement equation" , max_length = 255 ,
974976 blank = True )
@@ -1054,7 +1056,7 @@ def save(self, *args, **kwargs):
10541056 fileid = self .dataloggerfileid .dataloggerfileid
10551057 management .call_command ('ProcessDataLoggerFile' , linkname ,str (fileid )
10561058 , str (self .databeginson ), str (self .columnheaderson ),
1057- False , False )
1059+ False , False , False )
10581060 super (ProcessDataloggerfile , self ).save (* args , ** kwargs )
10591061 # def get_actions(self, request):
10601062 # #Disable delete
@@ -2727,7 +2729,8 @@ def email_text(self):
27272729 return s
27282730
27292731 def csvheaderShort (self ):
2730- s = '\" {0} -unit-{1}-processing level-{2}\" ,' .format (
2732+ s = 'method,'
2733+ s += '\" {0} -unit-{1}-processing level-{2}\" ,' .format (
27312734 self .resultid .resultid .variableid .variablecode ,
27322735 self .resultid .resultid .unitsid .unitsname ,
27332736 self .resultid .resultid .processing_level .processinglevelcode )
@@ -2736,6 +2739,8 @@ def csvheaderShort(self):
27362739 return s
27372740
27382741 def csvoutputShort (self ):
2742+ s = '\" {0}\" ,' .format (
2743+ self .resultid .resultid .featureactionid .action .method .methodcode )
27392744 s = '{0},' .format (self .datavalue )
27402745 s += '{0}' .format (self .qualitycodecv )
27412746 trvannotation = Timeseriesresultvalueannotations .objects .filter (valueid = self .valueid )
@@ -2807,7 +2812,8 @@ def email_text(self):
28072812 s += 'location- {0}' .format (self .samplingfeaturename )
28082813 return s
28092814 def csvheaderShort (self ):
2810- s = '\" {0} -unit-{1}-processing level-{2}\" ,' .format (
2815+ s = 'method,'
2816+ s += '\" {0} -unit-{1}-processing level-{2}\" ,' .format (
28112817 self .variablecode ,
28122818 self .unitsabbreviation ,
28132819 self .processinglevelcode )
@@ -2832,7 +2838,9 @@ def csvoutput(self):
28322838
28332839
28342840 def csvoutputShort (self ):
2835- s = '{0},' .format (self .datavalue )
2841+ s = '\" {0}\" ,' .format (
2842+ self .resultid .resultid .featureactionid .action .method .methodcode )
2843+ s += '{0},' .format (self .datavalue )
28362844 s += '{0},' .format (self .qualitycodecv )
28372845 return s
28382846
@@ -2906,7 +2914,8 @@ def email_text(self):
29062914 return s
29072915
29082916 def csvheaderShort (self ):
2909- s = '\" {0} -unit-{1}-processing level-{2}\" ,' .format (
2917+ s = 'method,'
2918+ s += '\" {0} -unit-{1}-processing level-{2}\" ,' .format (
29102919 self .variablecode ,
29112920 self .unitsabbreviation ,
29122921 self .processinglevelcode )
@@ -2915,7 +2924,10 @@ def csvheaderShort(self):
29152924 return s
29162925
29172926 def csvoutputShort (self ):
2918- s = '{0},' .format (self .datavalue )
2927+ result = Results .objects .get (resultid = self .resultid )
2928+ s = '\" {0}\" ,' .format (
2929+ result .featureactionid .action .method .methodcode )
2930+ s += '{0},' .format (self .datavalue )
29192931 s += '{0},' .format (self .qualitycodecv )
29202932 if self .annotationtext :
29212933 s += '\" {0} \" ,' .format (self .annotationtext )
0 commit comments