mirror of
https://github.com/laurivosandi/certidude
synced 2024-12-22 16:25:17 +00:00
api: Fixed API call for querying leases
This commit is contained in:
parent
ece05a21e0
commit
c59198887c
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user