starting phase 5; clap cli
This commit is contained in:
+2
-2
@@ -22,7 +22,7 @@ fn is_sentinel(v: f64) -> bool {
|
||||
.any(|s| v.total_cmp(s) == std::cmp::Ordering::Equal)
|
||||
}
|
||||
|
||||
pub async fn fetch_metadata(client: &Client, url: &str) -> Result<LookupMap> {
|
||||
pub async fn fetch_metadata(client: &Client, url: &str) -> Result<(LookupMap, MetadataResponse)> {
|
||||
info!("Fetching metadata from {}", url);
|
||||
|
||||
let resp = client
|
||||
@@ -63,7 +63,7 @@ pub async fn fetch_metadata(client: &Client, url: &str) -> Result<LookupMap> {
|
||||
lookup_map.insert(var.code.clone(), lookup);
|
||||
}
|
||||
|
||||
Ok(lookup_map)
|
||||
Ok((lookup_map, meta))
|
||||
}
|
||||
|
||||
pub fn extract_available_months(meta: &MetadataResponse) -> Vec<String> {
|
||||
|
||||
Reference in New Issue
Block a user