Updated export configuration, displaying project name

This commit is contained in:
2026-01-13 15:02:38 -05:00
parent da7603bdb5
commit d9428236ec
2 changed files with 14 additions and 1 deletions
+13
View File
@@ -5980,6 +5980,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:
has_location_accuracy = check_location_accuracy_column_exists()
@@ -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:
+1 -1
View File
@@ -67,7 +67,7 @@
{% if filters.project_filter %}
<span class="filter-tag">
<i class="fas fa-project-diagram"></i>
Project: {{ filters.project_filter }}
Project: {% if project_name %}{{ project_name }}{% else %}{{ filters.project_filter }}{% endif %}
</span>
{% endif %}
</div>