Fix bug in notes for geo scrobbles

This commit is contained in:
2023-11-26 21:36:45 +01:00
parent 0d3da63aaf
commit 635e8053cd

View File

@ -268,6 +268,7 @@ def gpslogger_scrobble_location(
scrobble = Scrobble.create_or_update(location, user_id, extra_data) scrobble = Scrobble.create_or_update(location, user_id, extra_data)
provider = f"data source: {LOCATION_PROVIDERS[data_dict.get('prov')]}" provider = f"data source: {LOCATION_PROVIDERS[data_dict.get('prov')]}"
if scrobble:
if scrobble.notes: if scrobble.notes:
scrobble.notes = scrobble.notes + f"\n{provider}" scrobble.notes = scrobble.notes + f"\n{provider}"
else: else: