Skip to content

Commit

Permalink
Change expiration for staff assistance requests
Browse files Browse the repository at this point in the history
  • Loading branch information
abuckles-uci committed Jun 17, 2024
1 parent 2075da6 commit 2c2738a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions NEMO/views/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ def create_buddy_request_notification(buddy_request: BuddyRequest):

def create_staff_assistance_request_notification(staff_assistance_request: StaffAssistanceRequest):
users: List[User] = User.objects.filter(is_active=True, is_staff=True).exclude(id=staff_assistance_request.user_id)
created_at = staff_assistance_request.creation_time
expiration = datetime(9999, 1, 1)
expiration = datetime(staff_assistance_request.creation_time.year + 100, 1, 1)
for u in users:
if u.get_preferences().display_new_buddy_request_notification:
Notification.objects.update_or_create(
Expand Down

0 comments on commit 2c2738a

Please sign in to comment.