removed unnecessary utcnow call

is this code required here?
This commit is contained in:
Kostyantyn Leschenko
2013-09-03 15:32:49 +03:00
parent 07bb00f75c
commit 9ddb909342
+1 -3
View File
@@ -206,9 +206,7 @@ def config_value(key, app=None, default=None):
def get_max_age(key, app=None):
now = datetime.utcnow()
expires = now + get_within_delta(key + '_WITHIN', app)
td = (expires - now)
td = get_within_delta(key + '_WITHIN', app)
return (td.microseconds + (td.seconds + td.days * 24 * 3600) * 1e6) / 1e6