Merge pull request #5252 from kevinjulian/agefilter-max-days-listed

Fix Agefilter cannot appear on startup messages
This commit is contained in:
Matthias 2021-07-08 20:29:06 +02:00 committed by GitHub
commit d96d6024f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,10 +58,10 @@ class AgeFilter(IPairList):
return (
f"{self.name} - Filtering pairs with age less than "
f"{self._min_days_listed} {plural(self._min_days_listed, 'day')}"
) + (
) + ((
" or more than "
f"{self._max_days_listed} {plural(self._max_days_listed, 'day')}"
) if self._max_days_listed else ''
) if self._max_days_listed else '')
def filter_pairlist(self, pairlist: List[str], tickers: Dict) -> List[str]:
"""