[gnome-music/wip/mschraal/search-cleanups: 1/6] grltrackerwrapper: Limit search results
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/search-cleanups: 1/6] grltrackerwrapper: Limit search results
- Date: Fri, 19 Jul 2019 22:50:19 +0000 (UTC)
commit 71eda07259b714d983c6a47ef66790de16a1e4aa
Author: Marinus Schraal <mschraal gnome org>
Date: Fri Jul 19 14:25:03 2019 +0200
grltrackerwrapper: Limit search results
Limit search results, so {List,Flow}Box do not get too slow.
gnomemusic/grilowrappers/grltrackerwrapper.py | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gnomemusic/grilowrappers/grltrackerwrapper.py b/gnomemusic/grilowrappers/grltrackerwrapper.py
index 3d4e4ce0..c271eec9 100644
--- a/gnomemusic/grilowrappers/grltrackerwrapper.py
+++ b/gnomemusic/grilowrappers/grltrackerwrapper.py
@@ -652,6 +652,7 @@ class GrlTrackerWrapper(GObject.GObject):
)
%(location_filter)s
}
+ LIMIT 50
""".replace('\n', ' ').strip() % {
'location_filter': self._location_filter(),
'name': term
@@ -707,6 +708,7 @@ class GrlTrackerWrapper(GObject.GObject):
)
%(location_filter)s
}
+ LIMIT 50
""".replace('\n', ' ').strip() % {
'location_filter': self._location_filter(),
'name': term
@@ -764,6 +766,7 @@ class GrlTrackerWrapper(GObject.GObject):
)
%(location_filter)s
}
+ LIMIT 50
""".replace('\n', ' ').strip() % {
'location_filter': self._location_filter(),
'name': term
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]