Skip to content

Commit

Permalink
Added padding to cache name
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao committed Jan 28, 2024
1 parent f7897bd commit f443eec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/legs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ impl Leg {
}
}

/// Implementation of the definition of landed in [M-4](../methodology.md).
fn landed(prev_position: &Position, position: &Position) -> bool {
matches!(
(&prev_position, &position),
Expand Down
2 changes: 1 addition & 1 deletion src/trace_month.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::{fs, fs_azure};

fn cache_file_path(icao: &str, date: &time::Date) -> String {
format!(
"{DIRECTORY}/{DATABASE}/{}-{}/trace_full_{icao}.json",
"{DIRECTORY}/{DATABASE}/{}-{:02}/trace_full_{icao}.json",
date.year(),
date.month() as u8
)
Expand Down

0 comments on commit f443eec

Please sign in to comment.