{% extends "base.html" %} {% block title %}Trefle Ecosystem Enrichment - Admin{% endblock %} {% block content %}

Trefle Ecosystem Enrichment

Enrich orchid records with botanical ecosystem data from Trefle.io

Back to Admin

{{ stats.total_orchid_records }}

Total Records

{{ stats.enriched_records }}

Enriched ({{ stats.enrichment_percentage }}%)

{{ stats.fcos_enriched_records }}

FCOS Enriched ({{ stats.fcos_enrichment_percentage }}%)

{{ stats.total_processable_records }}

Processable Records

FCOS Collection Priority
Five Cities Orchid Society (FCOS) Records

Total FCOS Records: {{ stats.fcos_total_records }}

Enriched: {{ stats.fcos_enriched_records }} ({{ stats.fcos_enrichment_percentage }}%)

{{ stats.fcos_enrichment_percentage }}%
Google Drive orchid records from FCOS import get priority processing
{% if active_session %}
Active Session: {{ active_session.session_name }}
{{ active_session.status.title() }}
{{ active_session.progress_percent }}%

Progress: {{ active_session.processed_records }} / {{ active_session.total_records }} records ({{ active_session.enriched_records }} enriched, {{ active_session.failed_records }} failed)

{% if active_session.estimated_completion %}

Estimated completion: {{ active_session.estimated_completion }}

{% endif %}
{% if active_session.status in ['pending', 'paused'] %} Continue {% endif %} {% if active_session.status == 'running' %} {% endif %} Cancel
{% endif %}
Create Enrichment Session
Larger batches are faster but may hit rate limits
Process 1,591 Google Drive orchid records first
Re-enrich records that already have Trefle data
Recent Sessions
{% if recent_sessions %}
{% for session in recent_sessions %} {% endfor %}
Session Name Status Progress Records Success Rate Created Actions
{{ session.session_name }} {% if session.priority_fcos_only %} FCOS {% endif %} {% if session.status == 'completed' %} {{ session.status.title() }} {% elif session.status == 'running' %} {{ session.status.title() }} {% elif session.status == 'paused' %} {{ session.status.title() }} {% elif session.status == 'failed' %} {{ session.status.title() }} {% else %} {{ session.status.title() }} {% endif %}
{{ session.progress_percent }}%
{{ session.processed_records }} / {{ session.total_records }}
✓{{ session.enriched_records }} ✗{{ session.failed_records }}
{% if session.processed_records > 0 %} {{ ((session.enriched_records / session.processed_records) * 100) | round(1) }}% {% else %} - {% endif %} {{ session.created_at | strftime('%m/%d %H:%M') if session.created_at else '-' }} {% if session.status in ['pending', 'paused'] %} {% endif %} {% if session.status in ['pending', 'running', 'paused'] %} {% endif %}
{% else %}

No enrichment sessions yet. Create your first session above!

{% endif %}
{% endblock %}