rendering

This commit is contained in:
bkfox
2024-01-27 19:24:24 +01:00
parent 5bb52a9d67
commit b9148933f4
7 changed files with 29 additions and 14 deletions

View File

@ -32,7 +32,9 @@ class HomeView(AttachedToMixin, BaseView, ListView):
logs = logs.after(min_date)
else:
logs = logs.date(today)
return Log.merge_diffusions(logs, object_list, diff_count=self.related_count, log_slice=20, group_logs=True)
return Log.merge_diffusions(
logs, object_list, diff_count=self.related_count, count=self.related_count + 2, group_logs=True
)
def get_next_diffs(self):
now = tz.now()