1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-12-23 00:25:18 +00:00

api: Fixed API call for querying leases

This commit is contained in:
Lauri Võsandi 2015-12-18 12:49:37 +00:00
parent ece05a21e0
commit c59198887c

View File

@ -37,19 +37,22 @@ class LeaseResource(object):
# BUGBUG
SQL_LEASES = """
SELECT
select
acquired,
released,
address,
identities.data as identity
FROM
from
addresses
RIGHT JOIN
right join
identities
ON
on
identities.id = addresses.identity
WHERE
where
addresses.released <> 1
order by
addresses.id
desc
"""
cnx = config.DATABASE_POOL.get_connection()
cursor = cnx.cursor()