Fixed the default days being shown being 366 instead of 365

master
Wynd 2025-09-05 01:04:42 +03:00
parent a748f78a94
commit 5f830049dd
4 changed files with 5 additions and 4 deletions

2
Cargo.lock generated
View File

@ -449,7 +449,7 @@ dependencies = [
[[package]] [[package]]
name = "git-heatmap" name = "git-heatmap"
version = "1.4.0" version = "1.4.1"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"chrono", "chrono",

View File

@ -2,7 +2,7 @@ cargo-features = ["codegen-backend"]
[package] [package]
name = "git-heatmap" name = "git-heatmap"
version = "1.4.0" version = "1.4.1"
edition = "2024" edition = "2024"
authors = ["Wynd <wyndftw@proton.me>"] authors = ["Wynd <wyndftw@proton.me>"]
description = "A simple and customizable heatmap for git repos" description = "A simple and customizable heatmap for git repos"

View File

@ -62,6 +62,6 @@ pub struct CliArgs {
} }
fn get_since_date() -> String { fn get_since_date() -> String {
let date = Local::now() - Duration::days(365); let date = Local::now() - Duration::days(364);
date.format("%Y-%m-%d").to_string() date.format("%Y-%m-%d").to_string()
} }

View File

@ -6,6 +6,7 @@ pub struct Mailmap {
entries: Vec<MapEntry>, entries: Vec<MapEntry>,
} }
#[allow(dead_code)]
#[derive(Debug)] #[derive(Debug)]
struct MapEntry { struct MapEntry {
new_name: Option<String>, new_name: Option<String>,
@ -58,4 +59,4 @@ impl Mailmap {
author author
} }
} }