Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ env_vars.sh
.venv/

secrets/
*.db
*.db
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-toml
Expand All @@ -12,12 +12,12 @@ repos:
- id: trailing-whitespace

- repo: https://gitlab.com/bmares/check-json5
rev: v1.0.0
rev: v1.0.1
hooks:
- id: check-json5

- repo: https://github.com/doublify/pre-commit-rust
rev: master
rev: v1.0
hooks:
- id: fmt
- id: cargo-check
Expand Down
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@
"cwd": "${workspaceFolder}"
}
]
}
}
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,3 @@ Contributions are welcome! Feel free to submit a pull request for new features,
# License

This project is licensed under Apache-2.0.


2 changes: 1 addition & 1 deletion db/creation.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ CREATE TABLE IF NOT EXISTS services (
name text NOT NULL UNIQUE,
enable boolean,
creation_time DATETIME DEFAULT CURRENT_TIMESTAMP
);
);
2 changes: 1 addition & 1 deletion src/milk_price.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ pub async fn price_periodically_checker_thread(url: &str, sleep_interval: Durati
#[cfg(test)]
mod tests {
use super::*;


#[tokio::test]
async fn test_get_price_success() {
Expand Down