Fixed smaller than not implemented bug by @ael on discord
This commit is contained in:
@@ -1675,7 +1675,7 @@ class AppBase:
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
elif check.lower() == "larger than":
|
elif check.lower() == "larger than" or check.lower() == "bigger than":
|
||||||
try:
|
try:
|
||||||
if str(sourcevalue).isdigit() and str(destinationvalue).isdigit():
|
if str(sourcevalue).isdigit() and str(destinationvalue).isdigit():
|
||||||
if int(sourcevalue) > int(destinationvalue):
|
if int(sourcevalue) > int(destinationvalue):
|
||||||
@@ -1684,7 +1684,7 @@ class AppBase:
|
|||||||
except AttributeError as e:
|
except AttributeError as e:
|
||||||
self.logger.error("[WARNING] Condition larger than failed with values %s and %s: %s" % (sourcevalue, destinationvalue, e))
|
self.logger.error("[WARNING] Condition larger than failed with values %s and %s: %s" % (sourcevalue, destinationvalue, e))
|
||||||
return False
|
return False
|
||||||
elif check.lower() == "smaller than":
|
elif check.lower() == "smaller than" or check.lower() == "less than":
|
||||||
try:
|
try:
|
||||||
if str(sourcevalue).isdigit() and str(destinationvalue).isdigit():
|
if str(sourcevalue).isdigit() and str(destinationvalue).isdigit():
|
||||||
if int(sourcevalue) < int(destinationvalue):
|
if int(sourcevalue) < int(destinationvalue):
|
||||||
|
|||||||
Reference in New Issue
Block a user