[gnome-documents] miner: simplify code
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] miner: simplify code
- Date: Mon, 1 Apr 2013 22:56:42 +0000 (UTC)
commit 255f3f430e074d5d378fb92299120bdda2891e95
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Mar 30 18:01:59 2013 -0400
miner: simplify code
No reason to use a FILTER here, just query for the attribute we're
interested in.
src/miner/gd-miner-tracker.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/miner/gd-miner-tracker.c b/src/miner/gd-miner-tracker.c
index 7fa4428..99f2e48 100644
--- a/src/miner/gd-miner-tracker.c
+++ b/src/miner/gd-miner-tracker.c
@@ -43,8 +43,8 @@ gd_miner_tracker_sparql_connection_get_string_attribute (TrackerSparqlConnection
const gchar *string_value = NULL;
gboolean res;
- g_string_append_printf (select, "SELECT ?val { ?urn %s ?val . FILTER (?urn IN (<%s>)) }",
- attribute, resource);
+ g_string_append_printf (select, "SELECT ?val { <%s> %s ?val }",
+ resource, attribute);
cursor = tracker_sparql_connection_query (connection,
select->str,
cancellable, error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]