avoiding repeat code in notification_instance.
Still a refactor would be great as the plugins_events table is getting filled in plugin.py and thus should be cleared in there.
This commit is contained in:
Ingo Ratsdorf
2025-09-17 08:58:02 +12:00
parent 8cbfd04db6
commit a51d0e72c7
2 changed files with 48 additions and 22 deletions

View File

@@ -186,9 +186,14 @@ def main ():
pm.run_plugin_scripts('on_notification')
notification.setAllProcessed()
# clear pending email flag
# and the plugin events
notification.clearPendingEmailFlag()
else:
# If there are no notifications to process,
# we still need to clear all plugin events
notification.clearPluginEvents()
mylog('verbose', ['[Notification] No changes to report'])