-
Notifications
You must be signed in to change notification settings - Fork 18
presentCountByDate and absentCountByDate #130
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
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,4 +41,6 @@ impl AttendanceQueries { | |
|
||
Ok(records) | ||
} | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Make sure you run clippy/linting tools to avoid unnecessary additions like this. |
||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,9 @@ pub mod graphql; | |
pub mod models; | ||
pub mod routes; | ||
|
||
use dotenv::dotenv; | ||
|
||
|
||
/// Handles all over environment variables in one place. | ||
// TODO: Replace with `Config.rs` crate. | ||
struct Config { | ||
|
@@ -39,6 +42,11 @@ impl Config { | |
|
||
#[tokio::main] | ||
async fn main() { | ||
dotenv().ok(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do you think this is necessary? |
||
|
||
// Fetch the DATABASE_URL env var | ||
|
||
|
||
let config = Config::from_env(); | ||
setup_tracing(&config.env); | ||
|
||
|
@@ -53,7 +61,7 @@ async fn main() { | |
let router = setup_router(schema, cors, config.env == "development"); | ||
|
||
info!("Starting Root..."); | ||
let listener = tokio::net::TcpListener::bind(format!("0.0.0.0:{}", config.port)) | ||
let listener = tokio::net::TcpListener::bind(format!("0.0.0.0:{}",config.port)) | ||
.await | ||
.unwrap(); | ||
axum::serve(listener, router).await.unwrap(); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,3 +58,5 @@ pub struct AttendanceWithMember { | |
pub year: i32, | ||
pub group_id: i32, | ||
} | ||
|
||
|
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.
Doesn't seem to be used anywhere?