[gnome-music/wip/mschraal/fix-artists-query] query: Replace incorrect artists order statement
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/fix-artists-query] query: Replace incorrect artists order statement
- Date: Wed, 14 Nov 2018 23:31:06 +0000 (UTC)
commit c828eef85ca70c52ca1a36eedec84d5c77482c48
Author: Marinus Schraal <mschraal gnome org>
Date: Thu Nov 15 00:25:52 2018 +0100
query: Replace incorrect artists order statement
The artists query contained an obsolete ?album_collation statement, that
was mistakenly not replaced in an earlier cleanup. It triggered an error
with a recent Tracker release.
Replace it with the updated ordering statement as originally intended.
gnomemusic/query.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/query.py b/gnomemusic/query.py
index b8223bc8..ac7707f8 100644
--- a/gnomemusic/query.py
+++ b/gnomemusic/query.py
@@ -174,7 +174,7 @@ class Query():
FILTER(STRSTARTS(nie:url(?song), '%(music_dir)s/'))
}
GROUP BY ?album
- ORDER BY (%(artist_sort)s) ?creation_date ?album_collation
+ ORDER BY %(artist_sort)s ?creation_date %(album_order)s
""".replace('\n', ' ').strip() % {
'where_clause': where_clause.replace('\n', ' ').strip(),
'music_dir': Query.MUSIC_URI,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]