query: Order address column results by recency.

This commit is contained in:
Brett Smith 2021-03-15 13:36:47 -04:00
parent b880115774
commit 0d01be68b3
2 changed files with 3 additions and 1 deletions

View file

@ -214,6 +214,7 @@ FROM donor
JOIN donor_email_address_mapping map ON donor.id = map.donor_id
JOIN email_address email ON map.email_address_id = email.id
WHERE donor.ledger_entity_id = ?
ORDER BY email.date_encountered DESC
"""
@ -231,6 +232,7 @@ FROM donor
JOIN donor_postal_address_mapping map ON donor.id = map.donor_id
JOIN postal_address postal ON map.postal_address_id = postal.id
WHERE donor.ledger_entity_id = ?
ORDER BY postal.date_encountered DESC
"""

View file

@ -5,7 +5,7 @@ from setuptools import setup
setup(
name='conservancy_beancount',
description="Plugin, library, and reports for reading Conservancy's books",
version='1.19.4',
version='1.19.5',
author='Software Freedom Conservancy',
author_email='info@sfconservancy.org',
license='GNU AGPLv3+',