mirror of
https://codeberg.org/YGGverse/ytd.git
synced 2026-04-08 04:55:26 +00:00
fix items limit condition
This commit is contained in:
parent
1a9b46fbb5
commit
d8a0c31889
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ async fn main() {
|
|||
channel.items_limit
|
||||
);
|
||||
for (i, item) in items.into_iter().enumerate() {
|
||||
if channel.items_limit.is_some_and(|l| i > l) {
|
||||
if channel.items_limit.is_some_and(|l| i >= l) {
|
||||
debug!("items limit for channel `{c}` reached at {i}; break.");
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue