From 20eddd5b93c3c2060d9e25f8a14e48a5966ffc21 Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Tue, 7 Mar 2023 17:56:12 +0530 Subject: [PATCH] add pin or popular variable for frontend to use --- pages/user.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pages/user.go b/pages/user.go index f72ee2f..59d26c8 100644 --- a/pages/user.go +++ b/pages/user.go @@ -35,6 +35,7 @@ type User struct { Contributions string Readme string MainRepos []RepoList + PinOrPopular string } type RepoList struct { Name string @@ -161,6 +162,7 @@ func HandleUser(c *fiber.Ctx) error { MainRepo.ForkOf = el.ChildText("p.text-small a.Link--muted") Scrape.MainRepos = append(Scrape.MainRepos, MainRepo) }) + Scrape.PinOrPopular = e.ChildText("h2.text-normal") }) sc.Visit("https://github.com/" + c.Params("user") + "/") // Fixing the output a bit