From 4010258c373962f259186ed0f2fab3c118352597 Mon Sep 17 00:00:00 2001 From: frikky Date: Fri, 30 Jul 2021 15:38:33 +0200 Subject: [PATCH] Fixed smaller than not implemented bug by @ael on discord --- backend/app_sdk/app_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app_sdk/app_base.py b/backend/app_sdk/app_base.py index a4da37fb..cf6a462e 100644 --- a/backend/app_sdk/app_base.py +++ b/backend/app_sdk/app_base.py @@ -1675,7 +1675,7 @@ class AppBase: return True return False - elif check.lower() == "larger than": + elif check.lower() == "larger than" or check.lower() == "bigger than": try: if str(sourcevalue).isdigit() and str(destinationvalue).isdigit(): if int(sourcevalue) > int(destinationvalue): @@ -1684,7 +1684,7 @@ class AppBase: except AttributeError as e: self.logger.error("[WARNING] Condition larger than failed with values %s and %s: %s" % (sourcevalue, destinationvalue, e)) return False - elif check.lower() == "smaller than": + elif check.lower() == "smaller than" or check.lower() == "less than": try: if str(sourcevalue).isdigit() and str(destinationvalue).isdigit(): if int(sourcevalue) < int(destinationvalue):