mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix Singleton value testing
Truthy falsy truthy falsy, apparently wants 'is'
This commit is contained in:
parent
f00830aeb5
commit
0c540293d8
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user