Skip to content

Commit fc783d3

Browse files
committed
Manually ignore global key from OM model fetching to address bug #5
1 parent eb550a5 commit fc783d3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "simplyprint-duet3d"
3-
version = "1.3.15"
3+
version = "1.3.16"
44
description = "SimplyPrint integration with any Duet3D powered RepRapFirmware printers "
55
readme = "README.rst"
66
license-files = ["LICENSE"]

simplyprint_duet3d/duet/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ async def _fetch_objectmodel_recursive(
220220
**kwargs,
221221
)
222222

223-
if (depth == 1 or not self.sbc) and isinstance(response["result"], dict):
223+
if (depth == 1 or not self.sbc) and isinstance(response["result"], dict) and key != "global":
224224
for k, v in response["result"].items():
225225
sub_key = f"{key}.{k}" if key else k
226226
sub_depth = depth + 1 if isinstance(v, dict) else 99

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)