Skip to content

Instantly share code, notes, and snippets.

@mesmere
Last active April 27, 2025 20:25
Show Gist options
  • Select an option

  • Save mesmere/0739dbfa43b7fa4e651c113978559d6f to your computer and use it in GitHub Desktop.

Select an option

Save mesmere/0739dbfa43b7fa4e651c113978559d6f to your computer and use it in GitHub Desktop.
Alphacross play stats
if [ $(id -u) -ne 0 ]
then echo "Please run this script as root."
exit
fi
/data/data/com.termux/files/usr/bin/sqlite3 /data/data/org.akop.crosswords/databases/crosswords
.mode column
.header on
select
case sizeRank
when 0 then 'xsmall'
when 1 then 'small'
when 2 then 'medium'
when 3 then 'large'
when 4 then 'xlarge'
end as grid_size,
count(*) as completed,
concat(sum(playTimeMillis)/1000/60/60,' hours') as time,
concat(round(
cast(sum(squaresCheated) as real)/sum(squaresTotal)*100,
2),'%') as cheated
from Crosswords
where status = 2
group by sizeRank;
@mesmere
Copy link
Author

mesmere commented Apr 27, 2025

1000010257

@mesmere
Copy link
Author

mesmere commented Apr 27, 2025

note that this includes archived and trashed grids. filter on folderId to exclude

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment