Skip to content

Commit e03bc1f

Browse files
committed
v8.13.1 bugfix release
1 parent 709a1d5 commit e03bc1f

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
## 8.13.1 (Unreleased)
1+
## 8.13.1 (2022-03-28)
2+
3+
### Bugfixes
4+
5+
- Fix Trigger dependency install
26

37
### Features
48

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Mycodo
33

44
Environmental Regulation System
55

6-
Latest version: 8.13.0
6+
Latest version: 8.13.1
77

88
Mycodo is open source software for the Raspberry Pi that couples inputs and outputs in interesting ways to sense and manipulate the environment.
99

mycodo/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
sys.path.append(os.path.abspath(os.path.dirname(__file__)))
1414
from config_translations import TRANSLATIONS as T
1515

16-
MYCODO_VERSION = '8.13.0'
16+
MYCODO_VERSION = '8.13.1'
1717
ALEMBIC_VERSION = 'b354722c9b8b'
1818

1919
# FORCE_UPGRADE_MASTER

mycodo/utils/modules.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ def load_module_from_file(path_file, module_type):
1818
module_custom = importlib.util.module_from_spec(spec)
1919
spec.loader.exec_module(module_custom)
2020
return module_custom, "success"
21-
except Exception as err:
22-
logger.error("Could not load module: {}".format(err))
21+
except Exception:
22+
logger.error(f"Could not load module: {traceback.format_exc()}")
2323
return None, traceback.format_exc()

mycodo/utils/update_dependencies.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from mycodo.databases.models import Actions
1818
from mycodo.databases.models import Widget
1919
from mycodo.databases.models import Camera
20+
from mycodo.databases.models import Trigger
2021
from mycodo.databases.models import CustomController
2122
from mycodo.databases.models import EnergyUsage
2223
from mycodo.databases.models import Function
@@ -103,6 +104,11 @@ def get_installed_dependencies():
103104
if each_dev.function_type not in devices:
104105
devices.append(each_dev.function_type)
105106

107+
trigger = db_retrieve_table_daemon(Trigger)
108+
for each_dev in trigger:
109+
if each_dev.trigger_type not in devices:
110+
devices.append(each_dev.trigger_type)
111+
106112
actions = db_retrieve_table_daemon(Actions)
107113
for each_dev in actions:
108114
if each_dev.action_type not in devices:
@@ -123,6 +129,8 @@ def get_installed_dependencies():
123129
if 'highstock' not in devices:
124130
devices.append('highstock')
125131

132+
print(devices)
133+
126134
for each_device in devices:
127135
device_unmet_dependencies, _, _ = return_dependencies(each_device)
128136
for each_dep in device_unmet_dependencies:

0 commit comments

Comments
 (0)