From f2b77849694e20498c0f14d685084669af62d55c Mon Sep 17 00:00:00 2001 From: Stefan Midjich Date: Fri, 29 Sep 2017 19:07:32 +0200 Subject: [PATCH] giving up on the cursor thing --- tools/purge_clients.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/purge_clients.py b/tools/purge_clients.py index 7cf7e62..a8146e2 100644 --- a/tools/purge_clients.py +++ b/tools/purge_clients.py @@ -31,11 +31,11 @@ config.readfp(args.config) sr = StoragePostgres(config=config) -for (client_id) in sr.client_ids(): +for client_id in sr.client_ids(): client = Client( storage=sr, chain=config.get('iptables', 'chain'), - client_id=client_id + client_id=client_id[0] ) if datetime.now() > client.expires: