Skip to content

Commit

Permalink
Remove outdated features and redundant imports
Browse files Browse the repository at this point in the history
Commented out the "Late Timesheet Entries" menu item in the sidebar and eliminated multiple instances of redundant import statements in the base cards module. These changes clean up the codebase and remove unneeded elements to enhance maintainability.
  • Loading branch information
ElemarJR committed Sep 20, 2024
1 parent 3ca6a47 commit 35ca109
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions src/ui/components/base/cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,15 +596,6 @@ def create_lte_card(d: datetime, dataset=None, worker=None, kind=None):

summary = tsds.TimelinessSummary(timesheet.data)

import dash_bootstrap_components as dbc
import dash_html_components as html

summary = tsds.TimelinessSummary(timesheet.data)

import dash_html_components as html

summary = tsds.TimelinessSummary(timesheet.data)

# Função auxiliar para montar a lista dos trabalhadores
def build_worker_list(worker_list):
if not worker_list:
Expand Down
2 changes: 1 addition & 1 deletion src/ui/components/sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def render():
("Datasets", "fas fa-database", "/datasets"),
("Side-by-side", "fas fa-columns", "/side-by-side"),
# ("Sales Funnel B2B", "fas fa-chart-line", "/sales-funnel-b2b"),
("Late Timesheet Entries", "fas fa-clock", "/lte"),
#("Late Timesheet Entries", "fas fa-clock", "/lte"),
# ("Ontology Publications", "fas fa-book", "/ontology-publications"),
# ("Insights Publications", "fas fa-lightbulb", "/insights-publications"),
]
Expand Down

0 comments on commit 35ca109

Please sign in to comment.