Skip to content

Commit

Permalink
fix: remove funtil and dew, add better indication on stats
Browse files Browse the repository at this point in the history
  • Loading branch information
ghivert committed Sep 5, 2024
1 parent f61bcb3 commit b2af865
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions apps/backend/src/backend/postgres/queries.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ pub fn select_more_popular_packages(db: pgo.Connection) {
"SELECT name, repository, rank, (popularity -> 'github')::int
FROM package
WHERE popularity -> 'github' IS NOT NULL
AND name != 'funtil'
AND name != 'dew'
ORDER BY popularity -> 'github' DESC
LIMIT 23"
|> pgo.execute(db, [], decoder)
Expand Down
6 changes: 3 additions & 3 deletions apps/frontend/src/frontend/view/body/body.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -349,19 +349,19 @@ fn view_analytics(model: Model) {
]),
h.div([a.class("analytics-charts-wrapper")], [popularity_chart(model)]),
analytics_title(
"Most used packages — Used as dependencies on Hex",
"Most used packages — Used as dependencies on Hex, counted by release",
False,
),
h.div([a.class("analytics-box-wrapper")], [
analytics_box(
"Packages using gleam_stdlib",
"Packages releases using gleam_stdlib",
model.ranked
|> list.find(fn(p) { p.name == "gleam_stdlib" })
|> result.map(fn(p) { p.rank })
|> result.unwrap(0),
),
analytics_box(
"Packages using gleeunit",
"Packages releases using gleeunit",
model.ranked
|> list.find(fn(p) { p.name == "gleeunit" })
|> result.map(fn(p) { p.rank })
Expand Down

0 comments on commit b2af865

Please sign in to comment.