From c6e196acc61a05dcc48fb44dc0ba60fa48004e9e Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Thu, 30 Jan 2014 10:37:25 -0500 Subject: [PATCH] Add the time at which this page was generated time stamp to help those of us who check the page frequently Change-Id: I4e60f1e4f635d4ad3e1ad30d8f773ade6fc180e5 --- elastic_recheck/cmd/uncategorized_fails.py | 4 +++- web/share/templates/uncategorized.html | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/elastic_recheck/cmd/uncategorized_fails.py b/elastic_recheck/cmd/uncategorized_fails.py index 7b93d517..1f106990 100755 --- a/elastic_recheck/cmd/uncategorized_fails.py +++ b/elastic_recheck/cmd/uncategorized_fails.py @@ -16,6 +16,7 @@ import argparse import collections +import datetime import operator import re import time @@ -148,7 +149,8 @@ def classifying_rate(fails, data, engine): "uncounted": total - count, "jobs": sort, "total_job_failures": total_job_failures, - "urls": bad_job_urls + "urls": bad_job_urls, + "generated_at": datetime.datetime.utcnow().strftime("%Y-%m-%dT%H:%M") } return engine.render(tvars) diff --git a/web/share/templates/uncategorized.html b/web/share/templates/uncategorized.html index e27863d6..43f2d393 100644 --- a/web/share/templates/uncategorized.html +++ b/web/share/templates/uncategorized.html @@ -20,6 +20,9 @@ Overall Categorization Rate: {{ rate['overall'] }}%

Total: {{ total }} - Found: {{ count }} = Unclassifed: {{ uncounted }}

+

+ Generated at: {{ generated_at }}% +

{% for job in jobs %} back to top