diff options
| author | Abhilash Raj | 2014-09-19 06:59:12 +0530 |
|---|---|---|
| committer | Abhilash Raj | 2014-09-19 06:59:12 +0530 |
| commit | 6dd2ac32ee1f1e8f588c08fd5363f0f794d0a6b1 (patch) | |
| tree | bf68d953616cd85bc14d3dee866998272fdfb506 /src/mailman/model/autorespond.py | |
| parent | 917c7fab696151743e4765560d55565ec8e8e38e (diff) | |
| download | mailman-6dd2ac32ee1f1e8f588c08fd5363f0f794d0a6b1.tar.gz mailman-6dd2ac32ee1f1e8f588c08fd5363f0f794d0a6b1.tar.zst mailman-6dd2ac32ee1f1e8f588c08fd5363f0f794d0a6b1.zip | |
Diffstat (limited to 'src/mailman/model/autorespond.py')
| -rw-r--r-- | src/mailman/model/autorespond.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mailman/model/autorespond.py b/src/mailman/model/autorespond.py index 17fe5fadc..c3aff174a 100644 --- a/src/mailman/model/autorespond.py +++ b/src/mailman/model/autorespond.py @@ -28,6 +28,7 @@ __all__ = [ from sqlalchemy import (Column, Integer, String, Unicode, ForeignKey, Date) +from sqlalchemy import desc from sqlalchemy.orm import relationship from zope.interface import implementer @@ -95,5 +96,5 @@ class AutoResponseSet: address = address, mailing_list = self._mailing_list, response_type = response_type - ).order_by(Desc(AutoResponseRecord.date_sent)) + ).order_by(desc(AutoResponseRecord.date_sent)) return (None if results.count() == 0 else results.first()) |
