Skip to content

Commit

Permalink
- release 6.0.3
Browse files Browse the repository at this point in the history
- fixed issue with task notification being sent from the last qualified user instead of the reporter
- Django 4.2.11 -> 4.2.15
  • Loading branch information
rptmat57 committed Aug 22, 2024
1 parent 0e4813a commit 9ea6eb7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions NEMO/views/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,15 @@ def send_new_task_emails(request, task: Task, user, task_images: List[TaskImages
recipients = get_task_email_recipients(task, new=True)
if ToolCustomization.get_bool("tool_problem_send_to_all_qualified_users"):
recipients = set(recipients)
for user in task.tool.user_set.all():
if user.is_active:
for qualified_user in task.tool.user_set.all():
if qualified_user.is_active:
recipients.update(
[email for email in user.get_emails(user.get_preferences().email_send_task_updates)]
[
email
for email in qualified_user.get_emails(
qualified_user.get_preferences().email_send_task_updates
)
]
)
send_mail(
subject=subject,
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="NEMO",
version="6.0.2",
version="6.0.3",
python_requires=">=3.8, <4",
packages=find_namespace_packages(exclude=["resources", "resources.*", "build", "build.*"]),
include_package_data=True,
Expand All @@ -29,7 +29,7 @@
],
install_requires=[
"cryptography==42.0.8",
"Django==4.2.11",
"Django==4.2.15",
"django-auditlog==3.0.0",
"django-filter==23.5",
"django-mptt==0.14.0",
Expand Down

0 comments on commit 9ea6eb7

Please sign in to comment.