Skip to content

Commit

Permalink
fix: Fix base blueprints
Browse files Browse the repository at this point in the history
  • Loading branch information
drorganvidez committed Jul 15, 2024
1 parent e1a6cf9 commit c6573e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/blueprints/base_blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, name, import_name, static_folder=None, static_url_path=None,
def add_script_route(self):
script_path = os.path.join(self.module_path, 'scripts.js')
if os.path.exists(script_path):
self.add_url_rule('/scripts.js', 'scripts', self.send_script)
self.add_url_rule(f'/{self.name}/scripts.js', 'scripts', self.send_script)
else:
print(f"(BaseBlueprint) -> {script_path} does not exist.")

Expand Down

0 comments on commit c6573e0

Please sign in to comment.