Skip to content

Commit

Permalink
only add excerpts to last messages excerpts
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielburnworth committed Sep 12, 2024
1 parent 0f8b91d commit 3639c83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion farmbot/functions/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ def on_message(_client, _userdata, msg):
for key in path:
payload = payload[key]
path_channel = f"{channel_key}_excerpt"
add_message(path_channel, payload)
if len(path) > 0:
add_message(path_channel, payload)

if diff_only:
key = path_channel if len(path) > 0 else channel_key
Expand Down

0 comments on commit 3639c83

Please sign in to comment.