-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attendance Command #142
base: main
Are you sure you want to change the base?
Attendance Command #142
Conversation
|
||
for _, signinType := range signinTypes { | ||
var entSigninType signin.Type | ||
switch signinType { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@c0untingNumbers I'll pass it for this PR but just as a heads up, I noticed in a few other places we're hard coding the signin types as a string and putting it through a giant switch statement. I'll make an issue about it but could you look into refactoring this?
Ideally, we'd declare both in one place with a simple helper function which can then be called everywhere else (or something along these lines). Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, good idea. Will put that up for an issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thank you for the contribution! 🎉
Added /attendance command that will show total signins and signins by type for the user.