From: Thierry Parmentelat Date: Tue, 19 May 2009 11:06:19 +0000 (+0000) Subject: count X-Git-Tag: MyPLC-4.3-11~3 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=8c0bebed9a28dbe1256e977cdd26fd0ebaed863c;p=myplc.git count --- diff --git a/plc-orphan-accounts.py b/plc-orphan-accounts.py index 8469f05..c2f9b59 100755 --- a/plc-orphan-accounts.py +++ b/plc-orphan-accounts.py @@ -49,13 +49,15 @@ def main_duplicates(): header ('Listing all duplicate accounts') locals = GetPersons({'peer_id':None,'-SORT':'email'}) locals.sort(sort_email) + index=1 for local in locals: remotes=GetPersons({'email':local['email'],'~peer_id':None}) if remotes: - list_person('---',local) + list_person('%3d'%index,local) for remote in remotes: list_person('dup',remote) - + + index+=1 def main(): main_orphans() main_duplicates()