add pin or popular variable for frontend to use

このコミットが含まれているのは:
Arya Kiran 2023-03-07 17:56:12 +05:30
コミット 20eddd5b93
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 842D12BDA50DF120
1個のファイルの変更2行の追加0行の削除

ファイルの表示

@ -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