diff --git a/templates/trip/stats.html b/templates/trip/stats.html index 7d81a3d..8644aff 100644 --- a/templates/trip/stats.html +++ b/templates/trip/stats.html @@ -27,7 +27,12 @@
Conferences in {{ year }}: {{ year_stats.conferences }}
{{ countries | count }} countries visited in {{ year }}: {% for c in countries %} - {{ c.flag }} {{ c.name }} + + {{ c.flag }} {{ c.name }} ({{ c.alpha_2 }}) + {% if c.alpha_2 not in previously_visited %} + new + {% endif %} + {% endfor %}
diff --git a/web_view.py b/web_view.py index 474ac1b..ebbbdf2 100755 --- a/web_view.py +++ b/web_view.py @@ -580,6 +580,7 @@ def trip_stats() -> str: distances_by_transport_type=sum_distances_by_transport_type(trip_list), yearly_stats=yearly_stats, conferences=conferences, + previously_visited=app.config.get("PREVIOUSLY_VISITED", set), )