2011-02-28 13:53:43

by Rafal Michalski

[permalink] [raw]
Subject: [PATCH] Adjust prefix of contact id for getting pb size

Getting phonebook size is related to recognizing contacts by their id
prefixes. Previously it was "contact: " and has been changed to
"urn:uuid:". This patch fixes it and allows to get valid phonebook size.
---
plugins/phonebook-tracker.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/phonebook-tracker.c b/plugins/phonebook-tracker.c
index b204493..99848e3 100644
--- a/plugins/phonebook-tracker.c
+++ b/plugins/phonebook-tracker.c
@@ -809,7 +809,7 @@
"SELECT COUNT(?c) " \
"WHERE {" \
"?c a nco:PersonContact ." \
- "FILTER (regex(str(?c), \"contact:\"))" \
+ "FILTER (regex(str(?c), \"urn:uuid:\"))" \
"}"

#define MISSED_CALLS_COUNT_QUERY \
--
1.6.3.3



2011-03-08 09:41:16

by Johan Hedberg

[permalink] [raw]
Subject: Re: [PATCH] Adjust prefix of contact id for getting pb size

Hi Rafal,

On Mon, Feb 28, 2011, Rafal Michalski wrote:
> Getting phonebook size is related to recognizing contacts by their id
> prefixes. Previously it was "contact: " and has been changed to
> "urn:uuid:". This patch fixes it and allows to get valid phonebook size.
> ---
> plugins/phonebook-tracker.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)

I seem to have missed this one. It's now pushed upstream.

Johan