Show More
@@ -74,14 +74,11 class SummaryController(BaseController): | |||||
74 |
|
74 | |||
75 | #graph range |
|
75 | #graph range | |
76 | td = datetime.today() + timedelta(days=1) |
|
76 | td = datetime.today() + timedelta(days=1) | |
77 | y = td.year |
|
77 | y, m, d = td.year, td.month, td.day | |
78 | m = td.month |
|
78 | c.ts_min = mktime((y, (td - timedelta(days=calendar.mdays[m])).month, | |
79 | d = td.day |
|
|||
80 | c.ts_min = mktime((y, (td - timedelta(days=calendar.mdays[m] - 1)).month, |
|
|||
81 | d, 0, 0, 0, 0, 0, 0,)) |
|
79 | d, 0, 0, 0, 0, 0, 0,)) | |
82 | c.ts_max = mktime((y, m, d, 0, 0, 0, 0, 0, 0,)) |
|
80 | c.ts_max = mktime((y, m, d, 0, 0, 0, 0, 0, 0,)) | |
83 |
|
81 | |||
84 |
|
||||
85 | def author_key_cleaner(k): |
|
82 | def author_key_cleaner(k): | |
86 | k = person(k) |
|
83 | k = person(k) | |
87 | k = k.replace('"', "'") #for js data compatibilty |
|
84 | k = k.replace('"', "'") #for js data compatibilty |
General Comments 0
You need to be logged in to leave comments.
Login now