track tuhmayto xhamster activity

This commit is contained in:
2024-12-02 12:26:59 -06:00
parent 3fe4b39dca
commit 029e596dbc
11 changed files with 2274 additions and 0 deletions

20
tuhmayto/dummy.sql Normal file
View File

@@ -0,0 +1,20 @@
-- Create the table if it doesn't exist
CREATE TABLE IF NOT EXISTS activity_log (
id INTEGER PRIMARY KEY AUTOINCREMENT,
timestamp TEXT NOT NULL
);
-- Insert dummy data for one year
DELETE FROM activity_log; -- Clear existing data
WITH RECURSIVE dates(date) AS (
SELECT datetime('2023-12-01 00:00:00')
UNION ALL
SELECT datetime(date, '+1 hour')
FROM dates
WHERE date < datetime('2024-12-01 00:00:00')
)
INSERT INTO activity_log (timestamp)
SELECT date
FROM dates
WHERE random() % 4 = 0; -- Randomly select approximately 25% of hours for activity