Retrieve latest available repo size
This commit is contained in:
parent
0afdab0111
commit
e216e50d74
|
@ -132,7 +132,7 @@ class Repo(models.Model):
|
||||||
archives = []
|
archives = []
|
||||||
archive_queryset = self.archive_set.all()
|
archive_queryset = self.archive_set.all()
|
||||||
for date in dates:
|
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():
|
if date_archives.exists():
|
||||||
archives.append(date_archives[0])
|
archives.append(date_archives[0])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user