Skip to content

Added a query to get the absents of month as per #27#106

Closed
he1senbrg wants to merge 1 commit intoamfoss:developfrom
he1senbrg:absent
Closed

Added a query to get the absents of month as per #27#106
he1senbrg wants to merge 1 commit intoamfoss:developfrom
he1senbrg:absent

Conversation

@he1senbrg
Copy link
Copy Markdown
Member

@he1senbrg he1senbrg commented May 5, 2025

closes #27

let end_date = date
.with_day(1)
.unwrap()
.with_month(date.month() + 1)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this break when the date is in December?


let end_date = date
.with_day(1)
.unwrap()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try not to use unwraps in the API, makes it harder to debug.

Comment thread src/models/attendance.rs
}

#[derive(SimpleObject, FromRow)]
pub struct AbsentsWithMember {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a more appropriate name would be MemberWithAbsence

@ivinjabraham
Copy link
Copy Markdown
Member

Completed in #143

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature: add a query to get the absents of month

2 participants