mirror of
https://codeberg.org/prof_x_pvt_ltd/captive.whump.shanti-portal
synced 2024-08-14 22:46:42 +00:00
giving up on the cursor thing
This commit is contained in:
parent
b91d30bffb
commit
f2b7784969
1 changed files with 2 additions and 2 deletions
|
@ -31,11 +31,11 @@ config.readfp(args.config)
|
||||||
|
|
||||||
sr = StoragePostgres(config=config)
|
sr = StoragePostgres(config=config)
|
||||||
|
|
||||||
for (client_id) in sr.client_ids():
|
for client_id in sr.client_ids():
|
||||||
client = Client(
|
client = Client(
|
||||||
storage=sr,
|
storage=sr,
|
||||||
chain=config.get('iptables', 'chain'),
|
chain=config.get('iptables', 'chain'),
|
||||||
client_id=client_id
|
client_id=client_id[0]
|
||||||
)
|
)
|
||||||
|
|
||||||
if datetime.now() > client.expires:
|
if datetime.now() > client.expires:
|
||||||
|
|
Loading…
Reference in a new issue