Remove whitespace at the end of the expression after del button is pressed

This commit is contained in:
Davte 2020-05-18 18:50:21 +02:00
parent e19e022e12
commit 1018876227
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ __author__ = "Davide Testa"
__email__ = "davide@davte.it"
__credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
__license__ = "GNU General Public License v3.0"
__version__ = "2.5.16"
__version__ = "2.5.17"
__maintainer__ = "Davide Testa"
__contact__ = "t.me/davte"

View File

@ -360,7 +360,7 @@ async def calculate_session(bot: Bot,
return
input_value = data[1]
if input_value == 'del':
expression = expression[:-1]
expression = expression[:-1].strip()
elif input_value == 'back':
pass
elif input_value in calc_buttons: