mirror of
https://github.com/thiloho/nixos-config.git
synced 2025-11-22 03:21:35 +01:00
Update flake and update todo timer query
This commit is contained in:
6
flake.lock
generated
6
flake.lock
generated
@@ -176,11 +176,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1703614087,
|
"lastModified": 1704042710,
|
||||||
"narHash": "sha256-jqbm2OSA4yywl7q9eV2koe0b4mKeoZfxiJWKBllIosA=",
|
"narHash": "sha256-S24SZ45gwBr11+5MvAn17H9m511r2W6MBml8CM7esJE=",
|
||||||
"owner": "thiloho",
|
"owner": "thiloho",
|
||||||
"repo": "todos",
|
"repo": "todos",
|
||||||
"rev": "7da2d3bf72e145ffb112f52b77905de34af64274",
|
"rev": "fa9703553ce932fc3fcc53788d7d6954cb5373bd",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -256,7 +256,7 @@
|
|||||||
pkgs.postgresql_15
|
pkgs.postgresql_15
|
||||||
];
|
];
|
||||||
script = ''
|
script = ''
|
||||||
psql -d todos -c "UPDATE user_todo SET is_overdue = true WHERE extract(epoch from CURRENT_DATE) > extract(epoch from due_date) AND is_completed = false AND is_overdue = false"
|
psql -d todos -c "UPDATE user_todo SET is_overdue = true WHERE NOW() AT TIME ZONE 'CET' >= due_date AND is_completed = false AND is_overdue = false"
|
||||||
'';
|
'';
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
User = "postgres";
|
User = "postgres";
|
||||||
|
|||||||
Reference in New Issue
Block a user