giving up on the cursor thing
This commit is contained in:
parent
b91d30bffb
commit
f2b7784969
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue