fix: date for earlier this week (#540)

This commit is contained in:
pablohashescobar 2023-03-28 01:52:34 +05:30 committed by GitHub
parent d6818e74fd
commit 722a053461
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -281,7 +281,7 @@ class RecentPagesEndpoint(BaseAPIView):
Page.objects.filter(
updated_at__date__range=(
(timezone.now() - timedelta(days=7)).date(),
(timezone.now() - timedelta(days=1)).date(),
(timezone.now() - timedelta(days=2)).date(),
),
workspace__slug=slug,
project_id=project_id,