giving up on the cursor thing

This commit is contained in:
Stefan Midjich 2017-09-29 19:07:32 +02:00
parent b91d30bffb
commit f2b7784969

View file

@ -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: