Fix Singleton value testing

Truthy falsy truthy falsy, apparently wants 'is'
This commit is contained in:
Zedifus 2022-04-02 02:34:12 +01:00
parent f00830aeb5
commit 0c540293d8

View File

@ -322,8 +322,7 @@ class helpers_management:
@staticmethod
def get_schedules_enabled():
# pylint: disable=singleton-comparison
return Schedules.select().where(Schedules.enabled == True).execute()
return Schedules.select().where(Schedules.enabled is True).execute()
# **********************************************************************************
# Backups Methods
@ -435,12 +434,9 @@ class helpers_management:
@staticmethod
def clear_unexecuted_commands():
Commands.update(
{
Commands.executed: True
# pylint: disable=singleton-comparison
}
).where(Commands.executed == False).execute()
Commands.update({Commands.executed: True}).where(
Commands.executed is False
).execute()
management_helper = helpers_management()