Mercurial > hg > Feedworm
diff backend/AbstractBackend.py @ 218:699d8f1cebd4
unify imports, especially Qt imports. Use consistent super syntax
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sun, 27 Apr 2014 06:04:57 +0200 |
parents | bb3c851b18b1 |
children | f79be01821c4 |
line wrap: on
line diff
--- a/backend/AbstractBackend.py Sun Apr 27 05:33:34 2014 +0200 +++ b/backend/AbstractBackend.py Sun Apr 27 06:04:57 2014 +0200 @@ -2,10 +2,10 @@ from datetime import datetime, timedelta def calculateExpireDate(preferences): - now = datetime.now() - daysToKeepFeedEntries = preferences.daysToKeepFeedEntries() - delta = timedelta(days=daysToKeepFeedEntries) - return now - delta + now = datetime.now() + daysToKeepFeedEntries = preferences.daysToKeepFeedEntries() + delta = timedelta(days=daysToKeepFeedEntries) + return now - delta class AbstractBackend(object): def __init__(self):