diff --git a/backend/backend.py b/backend/backend.py index 47e305a0..b3563808 100644 --- a/backend/backend.py +++ b/backend/backend.py @@ -76,8 +76,6 @@ def _jinja2_filter_datetime(watch_obj, format="%Y-%m-%d %H:%M:%S"): @app.template_filter('format_timestamp_timeago') def _jinja2_filter_datetimestamp(timestamp, format="%Y-%m-%d %H:%M:%S"): - if timestamp == 0: - return 'Not yet' return timeago.format(timestamp, time.time()) # return timeago.format(timestamp, time.time()) # return datetime.datetime.utcfromtimestamp(timestamp).strftime(format) diff --git a/backend/fetch_site_status.py b/backend/fetch_site_status.py index 4b41d8c5..95b75a8a 100644 --- a/backend/fetch_site_status.py +++ b/backend/fetch_site_status.py @@ -113,10 +113,10 @@ class perform_site_check(): fetched_md5 = hashlib.md5(stripped_text_from_html.encode('utf-8')).hexdigest() - if self.current_md5 != fetched_md5: + if self.current_md5 != fetched_md5: # could be None or False depending on JSON type # Don't confuse people by updating as last-changed, when it actually just changed from None.. - if self.datastore.get_val(self.uuid, 'previous_md5') is not None: + if self.datastore.get_val(self.uuid, 'previous_md5'): self.update_obj["last_changed"] = self.timestamp self.update_obj["previous_md5"] = fetched_md5 diff --git a/backend/templates/watch-overview.html b/backend/templates/watch-overview.html index 939343c8..7777bd36 100644 --- a/backend/templates/watch-overview.html +++ b/backend/templates/watch-overview.html @@ -53,7 +53,12 @@ {% endif %}