diff --git a/borgweb/borg/models/repo.py b/borgweb/borg/models/repo.py index c91c749..cd81672 100644 --- a/borgweb/borg/models/repo.py +++ b/borgweb/borg/models/repo.py @@ -132,7 +132,7 @@ class Repo(models.Model): archives = [] archive_queryset = self.archive_set.all() for date in dates: - date_archives = archive_queryset.filter(start__date=date).order_by('-start') + date_archives = archive_queryset.filter(start__date__lte=date).order_by('-start') if date_archives.exists(): archives.append(date_archives[0]) else: