Skip to content

Commit

Permalink
fix call to get css files
Browse files Browse the repository at this point in the history
  • Loading branch information
brifordwylie committed Dec 4, 2024
1 parent eb06d0e commit a8eff5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions applications/aws_dashboard/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# Set up the Theme Manager
tm = ThemeManager(theme="dark")
css_files = tm.get_current_css_files()
print(css_files)

# Create the Dash app
app = Dash(
Expand Down
2 changes: 1 addition & 1 deletion src/sageworks/utils/theme_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def register_css_route(self, app):

@app.server.route("/custom.css")
def serve_custom_css():
theme = self.available_themes[self.current_theme]
theme = self.available_themes[self.current_theme["name"]]
custom_css_file = theme.get("custom_css")
if custom_css_file:
return send_from_directory(custom_css_file.parent, custom_css_file.name)
Expand Down

0 comments on commit a8eff5f

Please sign in to comment.