From 9d950cf31d5c22f119212a43e6a9441e7e579e0c Mon Sep 17 00:00:00 2001 From: SoXX Date: Fri, 1 Nov 2024 21:15:29 +0100 Subject: [PATCH] fix: comparison logic in algorithm to correctly break the loop --- pkg/plug/algorithm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/plug/algorithm.go b/pkg/plug/algorithm.go index f87a32a..ae074ea 100644 --- a/pkg/plug/algorithm.go +++ b/pkg/plug/algorithm.go @@ -67,7 +67,7 @@ func algorithm(ctx context.Context, plugInterface Plug, userSource models.UserSo outer: for { - if anthroveUserFavCount < profile.UserFavoriteCount && profile.UserFavoriteCount > 0 { + if anthroveUserFavCount >= profile.UserFavoriteCount && profile.UserFavoriteCount > 0 { break outer }