Commit 2b6e44f70b45b08388538e3817fcde70257c91c9
1 parent
07193e64
Exists in
master
and in
3 other branches
Change notifications to get task with begin date equal to today
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
notifications/utils.py
... | ... | @@ -15,7 +15,7 @@ def get_resource_users(resource): |
15 | 15 | return User.objects.filter(Q(resource_students = resource) | Q(group_participants__resource_groups = resource)).distinct() |
16 | 16 | |
17 | 17 | def set_notifications(): |
18 | - pendencies = Pendencies.objects.filter(begin_date__date__lt = timezone.now(), resource__visible = True) | |
18 | + pendencies = Pendencies.objects.filter(begin_date__date__lte = timezone.now(), resource__visible = True) | |
19 | 19 | |
20 | 20 | for pendency in pendencies: |
21 | 21 | users = get_resource_users(pendency.resource) | ... | ... |