[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:52 +0000 (UTC)
commit c4db51152c99f669e8c8925f92009405a8a5c679
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Apr 1 18:18:38 2013 -0400
miner: simplify code
Reuse job->datasource_urn instead of constructing again the same string.
src/miner/gd-miner.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/miner/gd-miner.c b/src/miner/gd-miner.c
index d90f20b..df13d93 100644
--- a/src/miner/gd-miner.c
+++ b/src/miner/gd-miner.c
@@ -200,8 +200,8 @@ gd_account_miner_job_query_existing (GdAccountMinerJob *job,
select = g_string_new (NULL);
g_string_append_printf (select,
- "SELECT ?urn nao:identifier(?urn) WHERE { ?urn nie:dataSource <gd:goa-account:%s>
}",
- goa_account_get_id (job->account));
+ "SELECT ?urn nao:identifier(?urn) WHERE { ?urn nie:dataSource <%s> }",
+ job->datasource_urn);
cursor = tracker_sparql_connection_query (job->connection,
select->str,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]