[add] better xpath generation, [add] wake lock, [add] device sorting,

[fix] better theme management
This commit is contained in:
2023-10-13 21:06:49 -04:00
parent 4da3f19c1a
commit 5d9c0804bd
7 changed files with 491 additions and 35 deletions

View File

@@ -135,7 +135,8 @@ SELECT
CAST(STRFTIME('%Y-%m-%d %H:%M:%S', devices.last_synced, users.time_offset) AS TEXT) AS last_synced
FROM devices
JOIN users ON users.id = devices.user_id
WHERE users.id = $user_id;
WHERE users.id = $user_id
ORDER BY devices.last_synced DESC;
-- name: GetDocument :one
SELECT * FROM documents

View File

@@ -401,6 +401,7 @@ SELECT
FROM devices
JOIN users ON users.id = devices.user_id
WHERE users.id = ?1
ORDER BY devices.last_synced DESC
`
type GetDevicesRow struct {