From 4d8e925f8c601c918aefa7de55fec4424df786b6 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Thu, 21 May 2026 14:40:24 -0400 Subject: [PATCH] [trails] Don't trust titles --- vrobbler/apps/scrobbles/importers/trail_gpx.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vrobbler/apps/scrobbles/importers/trail_gpx.py b/vrobbler/apps/scrobbles/importers/trail_gpx.py index 13d2087..835ab03 100644 --- a/vrobbler/apps/scrobbles/importers/trail_gpx.py +++ b/vrobbler/apps/scrobbles/importers/trail_gpx.py @@ -229,9 +229,7 @@ def import_trail_gpx(file_path, user_id, original_filename=None): trail = Trail.find_by_trailhead(first_lat, first_lon, tolerance_m=100) if not trail: - trail = Trail.find_or_create(track_name) - trail.trailhead_location = geo - trail.save(update_fields=["trailhead_location"]) + trail = Trail.objects.create(title=track_name, trailhead_location=geo) timestamp = first_time stop_timestamp = last_time