mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Renamed sub for readability
This commit is contained in:
@@ -189,7 +189,7 @@ def main ():
|
|||||||
notification.clearPendingEmailFlag()
|
notification.clearPendingEmailFlag()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
notification.clearPluginObjects()
|
notification.clearPluginEvents()
|
||||||
mylog('verbose', ['[Notification] No changes to report'])
|
mylog('verbose', ['[Notification] No changes to report'])
|
||||||
|
|
||||||
# Commit SQL
|
# Commit SQL
|
||||||
|
|||||||
@@ -283,7 +283,7 @@ class NotificationInstance:
|
|||||||
|
|
||||||
self.save()
|
self.save()
|
||||||
|
|
||||||
def clearPluginObjects(self):
|
def clearPluginEvents(self):
|
||||||
# clear plugin events
|
# clear plugin events
|
||||||
self.db.sql.execute("DELETE FROM Plugins_Events")
|
self.db.sql.execute("DELETE FROM Plugins_Events")
|
||||||
self.save()
|
self.save()
|
||||||
|
|||||||
Reference in New Issue
Block a user