Skip to content

Commit

Permalink
Clarify location on map
Browse files Browse the repository at this point in the history
  • Loading branch information
malted committed Apr 4, 2024
1 parent 6bc6bcf commit 918a6fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions src/content/content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ fn img(

let s = malted_state.read();

let query = if s.city.trim().is_empty() || s.country.trim().is_empty() {
String::from("burlington,vt")
let query = if s.city.trim().is_empty() || s.country.trim().is_empty() || s.city.trim().to_lowercase() == "burlington" {
String::from("burlington,vermont,usa")
} else {
format!("{},{}", s.city, s.country)
};
Expand Down

0 comments on commit 918a6fd

Please sign in to comment.