From 3ea272989b7ab51af72bc1c47508526b3c61214e Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 18 Feb 2020 08:12:14 +1000 Subject: [PATCH] fix negative number in compat message --- qt/aqt/addons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/addons.py b/qt/aqt/addons.py index 3c0db3741..910d23cd0 100644 --- a/qt/aqt/addons.py +++ b/qt/aqt/addons.py @@ -725,7 +725,7 @@ class AddonsDialog(QDialog): if min is not None and min > current_point_version: return f"Anki >= 2.1.{min}" else: - max = addon.max_point_version + max = abs(addon.max_point_version) return f"Anki <= 2.1.{max}" def should_grey(self, addon: AddonMeta):