From 1e8e8e44a1447b80fe5273513a9109312b7c3c73 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 27 May 2024 12:23:52 +0200 Subject: [PATCH] fix logic --- changedetectionio/flask_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/flask_app.py b/changedetectionio/flask_app.py index 5fc0f48d..3a3bb0f8 100644 --- a/changedetectionio/flask_app.py +++ b/changedetectionio/flask_app.py @@ -124,7 +124,7 @@ 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 == False: + if not timestamp: return 'Not yet' return timeago.format(int(timestamp), time.time())