Skip to content

Commit

Permalink
also color old paths
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrinux committed Jul 9, 2018
1 parent 49f3c5f commit 6963a51
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions py3status/modules/file_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand All @@ -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,
Expand Down

0 comments on commit 6963a51

Please sign in to comment.