Skip to content

Commit a3661b4

Browse files
author
Michael Farb
committed
fixed registration log count
- Closes SafeSlingerProject#39.
1 parent adbaf82 commit a3661b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

safeslinger-messenger/python/cleanup_reg.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def get(self):
3636
if self.request.headers.get('X-AppEngine-Cron') == 'true':
3737

3838
query = registration.Registration.all().order('key_id').order('-inserted')
39-
num = query.count()
39+
num = 0
4040
dup_regs = []
4141
keys = set()
4242

@@ -45,6 +45,7 @@ def get(self):
4545
lastKeyId = None
4646
lastRegId = None
4747
for r in query:
48+
num += 1
4849
keys.add(r.key_id)
4950
if r.registration_id == lastRegId:
5051
if r.key_id == lastKeyId:

0 commit comments

Comments
 (0)