fix: comparison logic in algorithm to correctly break the loop
All checks were successful
Gitea Build Check / Build (push) Successful in 41s
Gitea Build Check / Build (pull_request) Successful in 41s

This commit is contained in:
SoXX 2024-11-01 21:15:29 +01:00
parent 996ec30de1
commit 9d950cf31d

View File

@ -67,7 +67,7 @@ func algorithm(ctx context.Context, plugInterface Plug, userSource models.UserSo
outer: outer:
for { for {
if anthroveUserFavCount < profile.UserFavoriteCount && profile.UserFavoriteCount > 0 { if anthroveUserFavCount >= profile.UserFavoriteCount && profile.UserFavoriteCount > 0 {
break outer break outer
} }