Skip to content

Commit

Permalink
Fix bug: inverseorder from config not respected
Browse files Browse the repository at this point in the history
  • Loading branch information
gbagnoli committed Aug 30, 2022
1 parent d250652 commit 55693f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tzbuddy"
version = "0.3.0"
version = "0.3.1"
authors = ["Giacomo Bagnoli <[email protected]>"]
edition = "2018"
homepage = "https://github.com/gbagnoli/tzbuddy.rs"
Expand Down
9 changes: 2 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ fn main() -> Result<()> {
let mut sort_order = SortOrder::East;
if cli.noorder || config.noorder {
sort_order = SortOrder::None;
} else if cli.inverseorder || config.noorder {
} else if cli.inverseorder || config.inverseorder {
sort_order = SortOrder::West;
}
let timezones = match cli.timezones.len() {
Expand All @@ -244,11 +244,6 @@ fn main() -> Result<()> {
};
let ampm = cli.ampm || config.ampm;
let tzhours = calculate_timezone_hours(get_timezones(timezones), date, span, ampm, sort_order);
print_table(
tzhours,
date,
cli.noheader || config.noheader,
cli.ampm || config.ampm,
);
print_table(tzhours, date, cli.noheader || config.noheader, ampm);
Ok(())
}

0 comments on commit 55693f2

Please sign in to comment.