Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1147,10 +1147,10 @@ impl Spotter {
games.sort_by_cached_key(|(_, g)| std::cmp::Reverse(g.title.to_lowercase()));
}
SortOrder::PlaytimeDesc => {
games.sort_by(|a, b| b.1.playtime_minutes.cmp(&a.1.playtime_minutes));
games.sort_by_key(|b| std::cmp::Reverse(b.1.playtime_minutes));
}
SortOrder::RatingDesc => {
games.sort_by(|a, b| b.1.rating.unwrap_or(0).cmp(&a.1.rating.unwrap_or(0)));
games.sort_by_key(|b| std::cmp::Reverse(b.1.rating.unwrap_or(0)));
}
SortOrder::LastPlayedDesc => {
games.sort_by(|a, b| b.1.last_played.cmp(&a.1.last_played));
Expand Down
5 changes: 1 addition & 4 deletions src/handlers/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ impl Spotter {
"Importing from Steam... ({} existing games)",
self.games.len()
);
eprintln!(
"[app] Starting Steam import (id={})",
&self.profile.steam_id
);
eprintln!("[app] Starting Steam import (id={})", self.profile.steam_id);
let api_key = self.profile.steam_api_key.clone();
let steam_id = self.profile.steam_id.clone();
// Build map of already-enriched games so full_import can skip them
Expand Down
Loading
Loading