mirror of
https://github.com/wassname/flask-security.git
synced 2026-07-07 00:06:15 +08:00
simplified get_max_age return value
This commit is contained in:
@@ -207,7 +207,7 @@ def config_value(key, app=None, default=None):
|
||||
|
||||
def get_max_age(key, app=None):
|
||||
td = get_within_delta(key + '_WITHIN', app)
|
||||
return (td.microseconds + (td.seconds + td.days * 24 * 3600) * 1e6) / 1e6
|
||||
return td.seconds + td.days * 24 * 3600
|
||||
|
||||
|
||||
def get_within_delta(key, app=None):
|
||||
|
||||
Reference in New Issue
Block a user