##// END OF EJS Templates
Small design changes. Count board speed since yesterday, not today
neko259 -
r411:debeb613 default
parent child Browse files
Show More
@@ -172,8 +172,8 b' class PostManager(models.Manager):'
172
172
173 posts_per_days = []
173 posts_per_days = []
174 for i in POSTS_PER_DAY_RANGE:
174 for i in POSTS_PER_DAY_RANGE:
175 day_end = today + timedelta(i)
175 day_end = today + timedelta(i - 1)
176 day_start = today + timedelta(i - 1)
176 day_start = today + timedelta(i - 2)
177 day_time_start = datetime.combine(day_start, dtime())
177 day_time_start = datetime.combine(day_start, dtime())
178 day_time_end = datetime.combine(day_end, dtime())
178 day_time_end = datetime.combine(day_end, dtime())
179
179
@@ -327,4 +327,4 b' class Thread(models.Model):'
327 return str(self.get_replies()[0].id)
327 return str(self.get_replies()[0].id)
328
328
329 def get_pub_time(self):
329 def get_pub_time(self):
330 return self.get_opening_post().pub_time No newline at end of file
330 return self.get_opening_post().pub_time
@@ -24,6 +24,7 b' html {'
24 .title {
24 .title {
25 font-weight: bold;
25 font-weight: bold;
26 color: #ffcc00;
26 color: #ffcc00;
27 font-size: 2ex;
27 }
28 }
28
29
29 .link, a {
30 .link, a {
General Comments 0
You need to be logged in to leave comments. Login now