fix: restore license expiration email delivery

This commit is contained in:
2026-07-29 11:28:55 +02:00
parent 3599dc703e
commit 157c891cde
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ limitations under the License.
from netbox.plugins import PluginConfig
from django.utils.translation import gettext_lazy as _
__version__ = "1.12.1"
__version__ = "1.12.2"
class SLMConfig(PluginConfig):
+2 -2
View File
@@ -39,12 +39,12 @@ class LicenseExpirationNotificationJob(JobRunner):
self._notify(license, user, max(due_dates))
def _notify(self, license, user, notification_date):
log, _ = SoftwareLicenseNotificationLog.objects.get_or_create(
log = SoftwareLicenseNotificationLog.objects.get_or_create(
license=license,
user=user,
expiration_date=license.expiration_date,
notification_date=notification_date,
)
)[0]
now = timezone.now()
if log.netbox_sent_at is None: