aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/vgstash/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vgstash/__init__.py b/src/vgstash/__init__.py
index 37fe582..4c1df3b 100755
--- a/src/vgstash/__init__.py
+++ b/src/vgstash/__init__.py
@@ -33,7 +33,7 @@ DEFAULT_CONFIG = {
}
FILTERS = {
- 'allgames': "SELECT * FROM games ORDER BY system, title",
+ 'allgames': "SELECT * FROM games ORDER BY system, title ASC",
'backlog': "SELECT * FROM games WHERE ownership > 0 AND progress > 0 AND progress < 3 ORDER BY system, title ASC",
'borrowing': "SELECT * FROM games WHERE ownership = 0 AND progress = 2 ORDER BY system, title ASC",
'complete': "SELECT * FROM games WHERE progress = 4 ORDER BY system, title ASC",
@@ -41,6 +41,7 @@ FILTERS = {
'done': "SELECT * FROM games WHERE progress > 2 ORDER BY system, title ASC",
'incomplete': "SELECT * FROM games WHERE progress = 3 AND ownership > 0 ORDER BY system, title ASC",
'new': "SELECT * FROM games WHERE progress = 1 ORDER BY system, title ASC",
+ 'notes': "SELECT * FROM games WHERE notes NOT LIKE '' ORDER BY system, title ASC",
'owned': "SELECT * FROM games WHERE ownership > 0 ORDER BY system, title ASC",
'physical': "SELECT * FROM games WHERE ownership = 1 ORDER BY system, title ASC",
'playlog': "SELECT * FROM games WHERE ownership > 0 AND progress = 2 ORDER BY system, title ASC",
f time games with a purchase date value have been sitting in your collection unbeaten. 2025-01-24tox.ini: Update to Python 3.11 env by defaultzlg1-1/+1 2025-01-23schema1-to-2.py: Add shebang because I'm a doofuszlg1-0/+2 2023-09-22scripts: Add schema v1->v2 migration scriptzlg2-9/+85 This script adds three columns to the schema, supporting the "Purchased", "Beaten", and "Completed" note headers. They are now converted to a UNIX timestamp and stored in a separate column so queries made against that metadata are easier. The library itself still needs to support all the new columns.