Skip to content

Commit 6ac348a

Browse files
committed
Fill in ids from /users/$foo
May not be able to reach `/user`
1 parent 2052214 commit 6ac348a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/fill-in-user-id.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ fn update(app: &App, tx: &postgres::Transaction) {
6565
for (id, login, token, avatar) in rows {
6666
println!("attempt: {}/{}", id, login);
6767
let res = (|| -> CargoResult<()> {
68-
let resp = try!(http::github(app, "/user", &token));
68+
let url = format!("/users/{}", login);
69+
let resp = try!(http::github(app, &url, &token));
6970
let ghuser: GithubUser = try!(http::parse_github_response(resp));
7071
if let Some(ref avatar) = avatar {
7172
if !avatar.contains(&ghuser.id.to_string()) {

0 commit comments

Comments
 (0)