[gnome-music] query: Cleanup get_album_for* queries
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] query: Cleanup get_album_for* queries
- Date: Sun, 11 Sep 2016 20:48:13 +0000 (UTC)
commit f80768cd1ffcde5f3dba5bc78c97d4df583c3d2d
Author: Marinus Schraal <mschraal src gnome org>
Date: Sun Sep 11 22:22:21 2016 +0200
query: Cleanup get_album_for* queries
Fix whitespace and remove unused title result.
gnomemusic/query.py | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/query.py b/gnomemusic/query.py
index 4611d85..a511938 100644
--- a/gnomemusic/query.py
+++ b/gnomemusic/query.py
@@ -357,10 +357,9 @@ class Query():
}
LIMIT 1
) AS ?artist
- nie:title(?album) AS ?title
nie:title(?album) AS ?album
WHERE {
- ?album a nmm:MusicAlbum .
+ ?album a nmm:MusicAlbum .
FILTER (
tracker:id(?album) = %(album_id)s
)
@@ -386,7 +385,6 @@ class Query():
}
LIMIT 1
) AS ?artist
- nie:title(?album) AS ?title
nie:title(?album) AS ?album
WHERE {
?song a nmm:MusicPiece ;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]