diff --git a/routers/focus.py b/routers/focus.py index 316b062..5299039 100644 --- a/routers/focus.py +++ b/routers/focus.py @@ -73,13 +73,13 @@ async def focus_view( domain_map[dk] = {"label": dl, "color": dc, "areas": OrderedDict()} ak = item.get("effective_area_id") or "__none__" - al = item.get("area_name") or "" + al = item.get("area_name") or "General" area_map = domain_map[dk]["areas"] if ak not in area_map: area_map[ak] = {"label": al, "projects": OrderedDict()} pk = item.get("effective_project_id") or "__none__" - pl = item.get("project_name") or "" + pl = item.get("project_name") or "General" proj_map = area_map[ak]["projects"] if pk not in proj_map: proj_map[pk] = {"label": pl, "rows": []} diff --git a/templates/focus.html b/templates/focus.html index a2c86ad..f753650 100644 --- a/templates/focus.html +++ b/templates/focus.html @@ -22,19 +22,15 @@ {{ domain.label }} {% for area in domain.areas %} - {% if area.label %}
{{ area.label }}
- {% endif %} {% for project in area.projects %} - {% if project.label %}
{{ project.label }}
- {% endif %} {% for item in project.rows %}
{% with reorder_url="/focus/reorder", item_id=item.id, extra_fields={"focus_date": focus_date|string} %}