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