Remove whitespace at the end of the expression after del button is pressed
This commit is contained in:
parent
e19e022e12
commit
1018876227
@ -11,7 +11,7 @@ __author__ = "Davide Testa"
|
|||||||
__email__ = "davide@davte.it"
|
__email__ = "davide@davte.it"
|
||||||
__credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
|
__credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
|
||||||
__license__ = "GNU General Public License v3.0"
|
__license__ = "GNU General Public License v3.0"
|
||||||
__version__ = "2.5.16"
|
__version__ = "2.5.17"
|
||||||
__maintainer__ = "Davide Testa"
|
__maintainer__ = "Davide Testa"
|
||||||
__contact__ = "t.me/davte"
|
__contact__ = "t.me/davte"
|
||||||
|
|
||||||
|
@ -360,7 +360,7 @@ async def calculate_session(bot: Bot,
|
|||||||
return
|
return
|
||||||
input_value = data[1]
|
input_value = data[1]
|
||||||
if input_value == 'del':
|
if input_value == 'del':
|
||||||
expression = expression[:-1]
|
expression = expression[:-1].strip()
|
||||||
elif input_value == 'back':
|
elif input_value == 'back':
|
||||||
pass
|
pass
|
||||||
elif input_value in calc_buttons:
|
elif input_value in calc_buttons:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user