Skip to content

Commit d73bb95

Browse files
kiznicheCopilot
andauthored
Update mycodo/mycodo_flask/utils/utils_settings.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 50aeba5 commit d73bb95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mycodo/mycodo_flask/utils/utils_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ def settings_function_update(form):
724724
# Restart the backend if any Controller using this module is currently activated
725725
controller_activated = CustomController.query.filter(
726726
CustomController.device == controller_device_name,
727-
CustomController.is_activated == True).count()
727+
CustomController.is_activated.is_(True)).count()
728728
if controller_activated:
729729
cmd = '{path}/mycodo/scripts/mycodo_wrapper daemon_restart 2>&1'.format(
730730
path=install_dir)

0 commit comments

Comments
 (0)