Skip to content

Commit 3639c83

Browse files
only add excerpts to last messages excerpts
1 parent 0f8b91d commit 3639c83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

farmbot/functions/broker.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ def on_message(_client, _userdata, msg):
140140
for key in path:
141141
payload = payload[key]
142142
path_channel = f"{channel_key}_excerpt"
143-
add_message(path_channel, payload)
143+
if len(path) > 0:
144+
add_message(path_channel, payload)
144145

145146
if diff_only:
146147
key = path_channel if len(path) > 0 else channel_key

0 commit comments

Comments
 (0)