From e216e50d74a51087fbb7661344fd80187f08d078 Mon Sep 17 00:00:00 2001 From: George Lacey Date: Mon, 14 Jun 2021 18:14:01 +0100 Subject: [PATCH] Retrieve latest available repo size --- borgweb/borg/models/repo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: