get_renewees: Order by lastname instead of last renewal date

This commit is contained in:
Tobias Mueller 2012-10-04 00:23:21 +02:00
parent 0f2851ef9f
commit 2e9d68fdf8

View file

@ -187,7 +187,7 @@ def get_members_which_need_renewal(mode):
%(mysql_to_date)s ,
INTERVAL 2 YEAR
)
ORDER BY last_renewed_on;
ORDER BY lastname;
'''.strip()
QUERY %= {'mysql_from_date': mysql_from_date,
'mysql_to_date': mysql_to_date}