fix all_ips method
This commit is contained in:
parent
477f983145
commit
b78081b65d
1 changed files with 2 additions and 2 deletions
|
@ -196,8 +196,8 @@ class RespoDB:
|
||||||
|
|
||||||
def all_ips(self):
|
def all_ips(self):
|
||||||
assert self._conn is not None
|
assert self._conn is not None
|
||||||
addresses = self._conn.query(TAddress).fetchall()
|
temp = self._conn.query(TAddress).values(TAddress.str)
|
||||||
return [addr.str for addr in addresses]
|
return [t[0] for t in temp]
|
||||||
|
|
||||||
def next_record_id(self):
|
def next_record_id(self):
|
||||||
from sqlalchemy.sql.expression import func
|
from sqlalchemy.sql.expression import func
|
||||||
|
|
Loading…
Add table
Reference in a new issue