[WEB-2388] fix: workspace draft issues migration (#5749)

* fix: workspace draft issues

* chore: changed the timezone key

* chore: migration changes
This commit is contained in:
Bavisetti Narayan 2024-10-08 16:51:57 +05:30 committed by GitHub
parent 7317975b04
commit d168fd4bfa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 2871 additions and 461 deletions

View file

@ -504,7 +504,7 @@ class WorkspaceUserProfileStatsEndpoint(BaseAPIView):
upcoming_cycles = CycleIssue.objects.filter(
workspace__slug=slug,
cycle__start_date__gt=timezone.now().date(),
cycle__start_date__gt=timezone.now(),
issue__assignees__in=[
user_id,
],
@ -512,8 +512,8 @@ class WorkspaceUserProfileStatsEndpoint(BaseAPIView):
present_cycle = CycleIssue.objects.filter(
workspace__slug=slug,
cycle__start_date__lt=timezone.now().date(),
cycle__end_date__gt=timezone.now().date(),
cycle__start_date__lt=timezone.now(),
cycle__end_date__gt=timezone.now(),
issue__assignees__in=[
user_id,
],