Skip to content

Commit

Permalink
add breakdown by tag
Browse files Browse the repository at this point in the history
  • Loading branch information
joske committed Feb 13, 2025
1 parent 302944d commit c790942
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions update_stats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,15 @@ echo

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

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 c790942

Please sign in to comment.