Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ai
autoca
Commits
b2cead60
Commit
b2cead60
authored
Jan 08, 2012
by
ale
Browse files
deserialize values returned from get_connections()
parent
ac81d393
Changes
1
Hide whitespace changes
Inline
Side-by-side
autovpn/acct.py
View file @
b2cead60
...
...
@@ -18,7 +18,8 @@ class Accounting(object):
local_pipe
.
execute
()
def
get_connections
(
self
,
cn
,
n
=
0
):
return
self
.
_aggr_db
.
lrange
(
'connections:%s'
%
cn
,
0
,
(
n
-
1
))
return
(
json
.
loads
(
x
)
for
x
in
self
.
_aggr_db
.
lrange
(
'connections:%s'
%
cn
,
0
,
(
n
-
1
)))
def
aggregate
(
self
,
cn
):
conns
=
[]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment