Skip to content

Commit

Permalink
fix: variable name in sub_label
Browse files Browse the repository at this point in the history
  • Loading branch information
OldTyT authored Nov 11, 2024
1 parent 19880b8 commit c0acc76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/frigate/frigate.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func SendMessageEvent(FrigateEvent EventStruct, bot *tgbotapi.BotAPI) {
text += "┣*Camera*\n┗ #" + NormalizeTagText(FrigateEvent.Camera) + "\n"
text += "┣*Label*\n┗ #" + NormalizeTagText(FrigateEvent.Label) + "\n"
if FrigateEvent.SubLabel != nil {
text += "┣*SubLabel*\n┗ #" + strings.Join(GetTagList(Events[Event].SubLabel), ", #") + "\n"
text += "┣*SubLabel*\n┗ #" + strings.Join(GetTagList(FrigateEvent.SubLabel), ", #") + "\n"
}
t_start := time.Unix(int64(FrigateEvent.StartTime), 0)
text += fmt.Sprintf("┣*Start time*\n┗ `%s", t_start) + "`\n"
Expand Down

0 comments on commit c0acc76

Please sign in to comment.