Fix units for refresh: never (#4048)

This commit is contained in:
Brian Kaufman 2022-11-23 17:31:37 -07:00 committed by Jesse Hills
parent ae74189fc2
commit 81b6562c25
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A

View file

@ -1680,7 +1680,7 @@ def source_refresh(value: str):
if value.lower() == "always":
return source_refresh("0s")
if value.lower() == "never":
return source_refresh("1000y")
return source_refresh("365250d")
return positive_time_period_seconds(value)