From 6963a51d6f1584c4ec93dd0d7e3151ee9c427c27 Mon Sep 17 00:00:00 2001 From: Cyril Levis Date: Mon, 9 Jul 2018 08:14:11 +0200 Subject: [PATCH] also color old paths --- py3status/modules/file_status.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/py3status/modules/file_status.py b/py3status/modules/file_status.py index 5d15b09b0d..e6e869968d 100644 --- a/py3status/modules/file_status.py +++ b/py3status/modules/file_status.py @@ -128,8 +128,7 @@ def file_status(self): if self.init['format_path']: new_data = [] format_path_separator = self.py3.safe_format( - self.format_path_separator - ) + self.format_path_separator) for pathname in paths: path = {} @@ -149,9 +148,11 @@ def file_status(self): if self.thresholds: self.py3.threshold_get_color(count_path, 'path') + self.py3.threshold_get_color(count_path, 'paths') return { - 'cached_until': self.py3.time_in(self.cache_timeout), + 'cached_until': + self.py3.time_in(self.cache_timeout), 'full_text': self.py3.safe_format( self.format, { 'path': count_path,