summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKornel <kornel@geekhood.net>2020-04-11 00:25:44 +0100
committerKornel <kornel@geekhood.net>2020-04-11 00:25:44 +0100
commitc2033008660e593a2fc398aa79a1c6f8716d6c15 (patch)
tree908877d699865adf3b84da4baf00674bfa929fd7
parent97291a50844bd554738fd442b26f1de1d10863b4 (diff)
Link other users to GH
-rw-r--r--categories/src/tuning.rs2
-rw-r--r--data/category_overrides.txt1
-rw-r--r--front_end/src/urler.rs2
3 files changed, 3 insertions, 2 deletions
diff --git a/categories/src/tuning.rs b/categories/src/tuning.rs
index f091623..22172a5 100644
--- a/categories/src/tuning.rs
+++ b/categories/src/tuning.rs
@@ -905,7 +905,7 @@ lazy_static! {
(Cond::All(&["game", "engine"]), &[("game-engines", 1.5, 0.3), ("games", 0.3, 0.), ("rendering::data-formats", 0.2, 0.), ("filesystem", 0.7, 0.), ("no-std", 0.8, 0.), ("filesystem", 0.8, 0.), ("command-line-interface", 0.8, 0.)]),
(Cond::All(&["game", "development"]), &[("game-engines", 1.3, 0.2), ("games", 0.3, 0.)]),
(Cond::All(&["game", "dev"]), &[("game-engines", 1.2, 0.), ("games", 0.9, 0.)]),
- (Cond::Any(&["games"]), &[("gui", 0.8, 0.)]),
+ (Cond::Any(&["games", "game"]), &[("gui", 0.7, 0.), ("development-tools", 0.7, 0.)]),
(Cond::All(&["rpg", "game"]), &[("games", 1.2, 0.2), ("game-engines", 1.1, 0.)]),
(Cond::All(&["voxel", "game"]), &[("games", 1.2, 0.2), ("game-engines", 1.1, 0.)]),
(Cond::Any(&["unreal-engine"]), &[("games", 1.2, 0.), ("game-engines", 1.1, 0.)]),
diff --git a/data/category_overrides.txt b/data/category_overrides.txt
index a12d775..ecca07a 100644
--- a/data/category_overrides.txt
+++ b/data/category_overrides.txt
@@ -1,4 +1,5 @@
abortable_parser: parsing
+ace: command-line-interface, parser-implementations
ackorelic: development-tools::debugging, network-programming
acm: science::math
advancedresearch-higher_order_core: rust-patterns
diff --git a/front_end/src/urler.rs b/front_end/src/urler.rs
index 0e85680..f2cb682 100644
--- a/front_end/src/urler.rs
+++ b/front_end/src/urler.rs
@@ -142,7 +142,7 @@ impl Urler {
if let Some(ref gh) = author.github {
Some(match (gh.user_type, author.owner) {
(UserType::User, true) => self.crates_io_user_by_github_login(&gh.login),
- (UserType::User, _) => format!("https://crates.io/users/{}", encode(&gh.login)),
+ (UserType::User, _) |
(UserType::Org, _) | (UserType::Bot, _) => format!("https://github.com/{}", encode(&gh.login)),
})
} else if let Some(ref info) = author.info {