1
0
mirror of https://github.com/GenderDysphoria/GenderDysphoria.fyi.git synced 2025-11-25 20:42:40 +00:00

Working on analytics parsing

This commit is contained in:
Jocelyn Badgley (Twipped)
2021-03-02 08:09:00 -08:00
parent 3f6077eb18
commit 98323f3316
8 changed files with 1656 additions and 51 deletions

13
analytics/queries.sql Normal file
View File

@@ -0,0 +1,13 @@
SELECT
date(dts) as day,
count(DISTINCT IFNULL(tid, ip)) as tids
FROM records
GROUP BY date(dts);
SELECT
(duration / 60) as minutes,
COUNT(IFNULL(tid,ip)) as total
FROM records
WHERE duration > 1 AND duration < (60 * 30)
GROUP BY duration / 60
HAVING total > 5;