From b45dae1251c2ea9b154176f500889da3fcce8ea9 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Thu, 3 Apr 2014 16:44:52 +0200 Subject: [PATCH] Overwrite bug fixed The dictionary was not declared in the right scope... --- bin/qof-server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/qof-server.py b/bin/qof-server.py index 7e010d4..95ef804 100644 --- a/bin/qof-server.py +++ b/bin/qof-server.py @@ -62,8 +62,8 @@ def getRecord(t = None): rec = "r:"+t+":"+rr['Value'] rs = r.smembers(rec) if rs: - rrval = {} for v in rs: + rrval = {} rdata = v.decode(encoding='UTF-8').strip() rrval['time_first'] = getFirstSeen(t1=t, t2=rdata) rrval['time_last'] = getLastSeen(t1=t, t2=rdata)