Explorar el Código

testing hour_of_week_test

Schultz hace 8 años
padre
commit
7f80a14084
Se han modificado 1 ficheros con 11 adiciones y 11 borrados
  1. 11
    11
      gitstats

+ 11
- 11
gitstats Ver fichero

@@ -878,8 +878,8 @@ class HTMLReportCreator(ReportCreator):
878 878
 
879 879
         # Day of Week
880 880
 
881
-        writeHeaderstoNewTSV("FlaskTest/static/data/day_of_week_TEST.tsv", ['day_number','day_name','commits'])
882
-        day_of_week_tsv=open("FlaskTest/static/data/day_of_week_TEST.tsv", "a+")
881
+        writeHeaderstoNewTSV(path + "day_of_week_TEST.tsv", ['day_number','day_name','commits'])
882
+        day_of_week_tsv=open(path + ls"day_of_week_TEST.tsv", "a+")
883 883
 
884 884
         f.write(html_header(2, 'Day of Week'))
885 885
         day_of_week = data.getActivityByDayOfWeek()
@@ -906,8 +906,8 @@ class HTMLReportCreator(ReportCreator):
906 906
 
907 907
        
908 908
         # Hour of Week
909
-        writeHeaderstoNewTSV("FlaskTest/static/data/hour_of_week_TEST.tsv", ['day','hour','value'])
910
-        hour_of_week_TEST=open("FlaskTest/static/data/hour_of_week_TEST.tsv", "a+")
909
+        writeHeaderstoNewTSV( path+"/hour_of_week_TEST.tsv", ['day','hour','value'])
910
+        hour_of_week_TEST=open( path+"/hour_of_week_TEST.tsv", "a+")
911 911
 
912 912
         f.write(html_header(2, 'Hour of Week'))
913 913
         f.write('<table>')
@@ -1029,7 +1029,7 @@ class HTMLReportCreator(ReportCreator):
1029 1029
 
1030 1030
         fgl = open(path + '/lines_of_code_by_author.dat', 'w')
1031 1031
         fgc = open(path + '/commits_by_author.dat', 'w')
1032
-        
1032
+
1033 1033
 
1034 1034
         lines_by_authors = {} # cumulated added lines by
1035 1035
         # author. to save memory,
@@ -1050,8 +1050,8 @@ class HTMLReportCreator(ReportCreator):
1050 1050
             fgl.write('%d' % stamp)
1051 1051
             fgc.write('%d' % stamp)
1052 1052
 
1053
-            # hour_of_week_TEST.write("%d\t" %(stamp))
1054
-            # commits_by_author_TEST.write("%d\t" %(stamp))
1053
+            hour_of_week_TEST.write("%d\t" %(stamp))
1054
+            commits_by_author_TEST.write("%d\t" %(stamp))
1055 1055
 
1056 1056
             for author in self.authors_to_plot:
1057 1057
                 if author in data.changes_by_date_by_author[stamp].keys():
@@ -1060,11 +1060,11 @@ class HTMLReportCreator(ReportCreator):
1060 1060
                 fgl.write(' %d' % lines_by_authors[author])
1061 1061
                 fgc.write(' %d' % commits_by_authors[author])
1062 1062
 
1063
-            #     hour_of_week_TEST.write("%d\t" % lines_by_authors[author] )
1064
-            #     commits_by_author_TEST.write("%d\t" % commits_by_authors[author] )
1063
+                hour_of_week_TEST.write("%d\t" % lines_by_authors[author] )
1064
+                commits_by_author_TEST.write("%d\t" % commits_by_authors[author] )
1065 1065
 
1066
-            # hour_of_week_TEST.write("\n")
1067
-            # commits_by_author_TEST.write("\n")
1066
+            hour_of_week_TEST.write("\n")
1067
+            commits_by_author_TEST.write("\n")
1068 1068
 
1069 1069
             fgl.write('\n')
1070 1070
             fgc.write('\n')