-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- this is a bit of a hack, not sure why the dates appear to be offset from 1991 /shrug
- Loading branch information
1 parent
7669ce2
commit f1767d4
Showing
3 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
SELECT n.ZTITLE as title, n.ZTEXT as markdown, n.ZMODIFICATIONDATE as modifiedAt, json_group_array(t.ZTITLE) AS tags | ||
SELECT n.ZTITLE as title, n.ZTEXT as markdown, datetime(n.ZMODIFICATIONDATE, 'unixepoch', '+31 years') as modifiedAt, json_group_array(t.ZTITLE) AS tags | ||
FROM ZSFNOTE n | ||
JOIN Z_7TAGS as nt ON nt.Z_7NOTES = n.Z_PK | ||
JOIN ZSFNOTETAG as t ON nt.Z_14TAGS = t.Z_PK | ||
GROUP BY n.ZTITLE, n.ZTEXT | ||
HAVING tags LIKE '%blog/solomonhawk%'; | ||
HAVING tags LIKE '%blog/solomonhawk%'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters