fix: output flatten list of records
This commit is contained in:
@@ -89,9 +89,12 @@ async fn main() -> Result<(), Box<dyn snafu::Error>> {
|
|||||||
match (human_readable, format) {
|
match (human_readable, format) {
|
||||||
(true, _) => println!("{rating}"),
|
(true, _) => println!("{rating}"),
|
||||||
(false, RatingFormat::Origin) => json_display(rating)?,
|
(false, RatingFormat::Origin) => json_display(rating)?,
|
||||||
(false, RatingFormat::DxRatingNet) => json_display(
|
(false, RatingFormat::DxRatingNet) => {
|
||||||
DxCalculatedEntries::from_user_rating_lossy(&rating.user_rating),
|
let mut data = DxCalculatedEntries::from_user_rating_lossy(&rating.user_rating);
|
||||||
)?,
|
let mut records = data.b35;
|
||||||
|
records.append(&mut data.b15);
|
||||||
|
json_display(records)?;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
commands::Commands::Logout { user_id, timestamp } => {
|
commands::Commands::Logout { user_id, timestamp } => {
|
||||||
|
|||||||
Reference in New Issue
Block a user