Fix update_days() report

The prevous commit has broken it.
This commit is contained in:
Ivan A. Melnikov 2019-12-06 13:13:52 +04:00
parent 8af9e1d7b1
commit 037474ab50

View File

@ -64,6 +64,12 @@ def package_one_line(name, by_name, package_tasks, separator='\t'):
lists.format_evr(np), tasks_str))
def format_colored_task(info, by_name):
return tasks.format_task(
info,
extra_info=colorize.package_colorizer(by_name, 'NONE'))
def update_days(by_name, package_tasks, update_times, now):
java = []
recent = []
@ -71,7 +77,7 @@ def update_days(by_name, package_tasks, update_times, now):
for name in by_name:
color, bp, np = by_name[name]
if color == 'RED':
if color == 'RED' or color == 'NONE':
continue
last_update = update_times.get(name, 0)