Compare commits
No commits in common. "164b5ebc44ecdbebac92d804e153131838874fcd" and "70250f1fca21f26e925eccddb14f33813e7e14c5" have entirely different histories.
164b5ebc44
...
70250f1fca
@ -170,9 +170,8 @@ async def _leases(request: Request, origin: bool = False):
|
|||||||
for lease in session.query(Lease).all():
|
for lease in session.query(Lease).all():
|
||||||
x = lease.serialize()
|
x = lease.serialize()
|
||||||
if origin:
|
if origin:
|
||||||
lease_origin = session.query(Origin).filter(Origin.origin_ref == lease.origin_ref).first()
|
# assume that each lease has a valid origin record
|
||||||
if lease_origin is not None:
|
x['origin'] = session.query(Origin).filter(Origin.origin_ref == lease.origin_ref).first().serialize()
|
||||||
x['origin'] = lease_origin.serialize()
|
|
||||||
response.append(x)
|
response.append(x)
|
||||||
session.close()
|
session.close()
|
||||||
return JSONr(response)
|
return JSONr(response)
|
||||||
|
@ -1 +1 @@
|
|||||||
VERSION=1.3.2
|
VERSION=1.3.1
|
||||||
|
Loading…
Reference in New Issue
Block a user