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 - |
|
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 |
General Comments 0
You need to be logged in to leave comments.
Login now