File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1- #!/usr/bin/env python
21#
32# Generates columns and cell data for an analytics tables of 1000+ columns
43# cf. url
@@ -25,18 +24,18 @@ def columns_hours():
2524 FAMILLY = 'hour'
2625 cols = []
2726 for hour in HOURS :
28- cols .append ('%s:%s -%s' % (FAMILLY , hour , 'total' ))
27+ cols .append ('%s:%02d -%s' % (FAMILLY , hour , 'total' ))
2928 for country in COUNTRIES :
30- cols .append ('%s:%s -%s' % (FAMILLY , hour , country ))
29+ cols .append ('%s:%02d -%s' % (FAMILLY , hour , country ))
3130 return cols
3231
3332def columns_days ():
3433 FAMILLY = 'day'
3534 cols = []
3635 for day in DAYS :
37- cols .append ('%s:%s -%s' % (FAMILLY , day , 'total' ))
36+ cols .append ('%s:%03d -%s' % (FAMILLY , day , 'total' ))
3837 for country in COUNTRIES :
39- cols .append ('%s:%s -%s' % (FAMILLY , day , country ))
38+ cols .append ('%s:%03d -%s' % (FAMILLY , day , country ))
4039 return cols
4140
4241def columns_total ():
You can’t perform that action at this time.
0 commit comments