Skip to content

Commit

Permalink
Merge pull request #234 from ropable/master
Browse files Browse the repository at this point in the history
Bugfix: set TracPlus device symbol properly.
  • Loading branch information
ropable authored Mar 8, 2024
2 parents e644761 + 73a9223 commit a7ef448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracking/harvest.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def save_tracplus_feed():

device, created = Device.objects.get_or_create(deviceid=data["device_id"])
rego = row["Asset Regn"][:32].strip()
symbol = row["Asset Type"] if row["Asset Type"] in tracplus_symbol_map else None
symbol = tracplus_symbol_map[row["Asset Type"]] if row["Asset Type"] in tracplus_symbol_map else None

if created:
created_device += 1
Expand Down

0 comments on commit a7ef448

Please sign in to comment.