Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JieningYu committed Jan 28, 2024
1 parent e2259ca commit 7095c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handle/notification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ pub async fn filter<Io: IoHandle>(
if let Some(from) = from {
select = select.and(0, from.0..);
}
if let Some((before, after)) = after.zip(before) {
if let (Some(before), Some(after)) = (before, after) {
if after + Duration::days(365) > before {
if after.year() == before.year() {
select = select.and(1, after.ordinal() as u64..=before.ordinal() as u64);
Expand Down

0 comments on commit 7095c63

Please sign in to comment.