migrated tasks and downloads to this flake

This commit is contained in:
2024-12-14 14:08:50 -06:00
parent b33b69a698
commit c12e26ae7d
18 changed files with 953 additions and 25 deletions

View File

@@ -1,20 +0,0 @@
-- 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