Skip to content

Commit

Permalink
Add slack total users
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Sep 5, 2024
1 parent 54b343c commit f2b85b8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stats/steampipe/pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ twitter = "steampipe query twitter_users.sql --output json | jq '.rows[0].public
twitter_hc = { cmd = "curl -fsS -m 10 --retry 5 -o /dev/null https://hc-ping.com/39c783d5-b697-4eb5-b677-05bae13a2490", depends_on = ["twitter"] }
github = "steampipe query github.sql --output json | jq '.rows[0] + {timestamp: now|tostring}' >> hf_stats/steampipe/github.json"
github_hc = { cmd = "curl -fsS -m 10 --retry 5 -o /dev/null https://hc-ping.com/017c8a09-9531-4206-a479-aa51a2209931", depends_on = ["github"] }
slack = "steampipe query slack_users.sql --output json | jq '.rows[0] + {timestamp: now|tostring}' >> hf_stats/steampipe/slack_users.json"
slack_active = "steampipe query slack_active_users.sql --output json | jq '.rows[0] + {timestamp: now|tostring}' >> hf_stats/steampipe/slack_active_users.json"
slack_total = "steampipe query slack_total_users.sql --output json | jq '.rows[0] + {timestamp: now|tostring}' >> hf_stats/steampipe/slack_total_users.json"
download_hf = "huggingface-cli download nf-core/stats --local-dir hf_stats --repo-type dataset --quiet"
upload_hf = "huggingface-cli upload nf-core/stats hf_stats --repo-type dataset --quiet"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-- Active Users
select
date(date_first) as day,
count(distinct user_name)
Expand Down
6 changes: 6 additions & 0 deletions stats/steampipe/slack_total_users.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
select
count(distinct real_name_normalized)
from
slack_user
where
deleted is false;

0 comments on commit f2b85b8

Please sign in to comment.