Skip to content

Commit

Permalink
add breakdown by tag
Browse files Browse the repository at this point in the history
Signed-off-by: Jos Dehaes <[email protected]>
  • Loading branch information
joske committed Feb 13, 2025
1 parent 302944d commit 3951b86
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions update_stats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,17 @@ echo

echo "Note: Devices with only a few installs are development tests (or people having fun)."

echo

echo "Breakdown by installer tag:"

cat <<EOF | su - postgres -s /bin/sh -c "psql asahistats"
select
count(*) as count,
data#>>Array['installer','tag'] as tag
from stats
group by tag
order by count desc;
EOF

) > htdocs/stats.txt

0 comments on commit 3951b86

Please sign in to comment.