Fix bug in notes for geo scrobbles
This commit is contained in:
@ -268,10 +268,11 @@ 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.notes:
|
if scrobble:
|
||||||
scrobble.notes = scrobble.notes + f"\n{provider}"
|
if scrobble.notes:
|
||||||
else:
|
scrobble.notes = scrobble.notes + f"\n{provider}"
|
||||||
scrobble.notes = provider
|
else:
|
||||||
scrobble.save(update_fields=["notes"])
|
scrobble.notes = provider
|
||||||
|
scrobble.save(update_fields=["notes"])
|
||||||
|
|
||||||
return scrobble
|
return scrobble
|
||||||
|
|||||||
Reference in New Issue
Block a user