From d9428236ec03029cc414a91795949b106371c6e0 Mon Sep 17 00:00:00 2001 From: NguyenND Date: Tue, 13 Jan 2026 15:02:38 -0500 Subject: [PATCH] Updated export configuration, displaying project name --- app.py | 13 +++++++++++++ templates/export_configuration.html | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 278c3b2..5b67098 100644 --- a/app.py +++ b/app.py @@ -5979,6 +5979,18 @@ def export_configuration(): } print(f"📊 Filters: {filters}") + + # Get project name if project filter is applied + project_name = None + if filters.get('project_filter'): + try: + from models.project import Project + project = Project.query.get(int(filters['project_filter'])) + if project: + project_name = project.name + print(f"📊 Project filter: ID={filters['project_filter']}, Name={project_name}") + except Exception as e: + print(f"⚠️ Error fetching project name: {e}") # Check if location accuracy feature exists try: @@ -6019,6 +6031,7 @@ def export_configuration(): return render_template('export_configuration.html', available_columns=available_columns, filters=filters, + project_name=project_name, has_location_accuracy_feature=has_location_accuracy) except Exception as e: diff --git a/templates/export_configuration.html b/templates/export_configuration.html index fd6bcdb..d3a71b9 100644 --- a/templates/export_configuration.html +++ b/templates/export_configuration.html @@ -67,7 +67,7 @@ {% if filters.project_filter %} - Project: {{ filters.project_filter }} + Project: {% if project_name %}{{ project_name }}{% else %}{{ filters.project_filter }}{% endif %} {% endif %}