added missing rstrip to calculator prefix

This commit is contained in:
Luis Aleixo 2023-03-20 15:54:33 +00:00
parent 60f3afe1e5
commit b010c5348f

View file

@ -350,7 +350,7 @@ def get_url(app_root: str, relative_path: str = '/'):
return app_root.rstrip('/') + relative_path.rstrip('/')
def get_calculator_url(app_root: str, calculator_prefix: str, relative_path: str = '/'):
return app_root.rstrip('/') + calculator_prefix + relative_path.rstrip('/')
return app_root.rstrip('/') + calculator_prefix.rstrip('/') + relative_path.rstrip('/')
def make_app(
debug: bool = False,