From dbd9b470d70aa82ba97ddd18f83c09d0de5ebe19 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Thu, 23 Jun 2022 10:16:05 +0200 Subject: [PATCH] Minor diff page improvements - list should be sorted 'newest first' and no need to include the current version to compare against (#716) --- changedetectionio/__init__.py | 2 +- changedetectionio/templates/diff.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/changedetectionio/__init__.py b/changedetectionio/__init__.py index cc60f311..18d9e71e 100644 --- a/changedetectionio/__init__.py +++ b/changedetectionio/__init__.py @@ -830,7 +830,7 @@ def changedetection_app(config=None, datastore_o=None): newest=newest_version_file_contents, previous=previous_version_file_contents, extra_stylesheets=extra_stylesheets, - versions=dates[1:], + versions=dates[:-1], # All except current/last uuid=uuid, newest_version_timestamp=dates[-1], current_previous_version=str(previous_version), diff --git a/changedetectionio/templates/diff.html b/changedetectionio/templates/diff.html index a80ab398..343e3d7a 100644 --- a/changedetectionio/templates/diff.html +++ b/changedetectionio/templates/diff.html @@ -22,7 +22,7 @@ {% if versions|length >= 1 %}