mirror of
https://github.com/thiloho/nixos-config.git
synced 2025-11-22 11:31:36 +01:00
Take timezones for todos into account
This commit is contained in:
6
flake.lock
generated
6
flake.lock
generated
@@ -192,11 +192,11 @@
|
|||||||
"website": {
|
"website": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1698328976,
|
"lastModified": 1700407082,
|
||||||
"narHash": "sha256-mCQyrnOglOPVfRNDGka8rE5fga7Oi1v+tjkIERsp0O0=",
|
"narHash": "sha256-B28qBl/MmVB2n0D9ka/wFBZQNq02yZfzdbchV3T0TTc=",
|
||||||
"owner": "thiloho",
|
"owner": "thiloho",
|
||||||
"repo": "website",
|
"repo": "website",
|
||||||
"rev": "cf4a8e081dc479652bb86a538e94781245783b7b",
|
"rev": "7523052a3f46db6708769eadb106ad32d7241423",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -150,7 +150,7 @@
|
|||||||
pkgs.postgresql_15
|
pkgs.postgresql_15
|
||||||
];
|
];
|
||||||
script = ''
|
script = ''
|
||||||
psql -d todos -c "UPDATE user_todo SET is_overdue = true WHERE due_date::date < CURRENT_DATE AND is_completed = false AND is_overdue = false"
|
psql -d todos -c "UPDATE user_todo SET is_overdue = true WHERE due_date::date < (CURRENT_DATE + INTERVAL '1 hour') AND is_completed = false AND is_overdue = false"
|
||||||
'';
|
'';
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
User = "postgres";
|
User = "postgres";
|
||||||
|
|||||||
@@ -87,6 +87,7 @@
|
|||||||
discord
|
discord
|
||||||
qbittorrent
|
qbittorrent
|
||||||
neofetch
|
neofetch
|
||||||
|
godot_4
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user