1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 15:57:14 +03:00

eddn/tracking: Tweak commenting about coordinates

* `entry_augment_system_data()` will now always be passed starpos based
  on state['StarPos'].
* Removed TODO about deprecating in-plugin tracking.
This commit is contained in:
Athanasius 2023-01-03 18:55:42 +00:00
parent e6abc137ce
commit 6f3967fb7f
No known key found for this signature in database
GPG Key ID: 772697E181BB2767

View File

@ -1123,11 +1123,10 @@ class EDDN:
entry['SystemAddress'] = this.systemaddress
if 'StarPos' not in entry:
# Prefer the passed-in, probably monitor.state version
# Prefer the passed-in version
if system_coordinates is not None:
entry['StarPos'] = system_coordinates
# TODO: Deprecate in-plugin tracking
elif this.coordinates is not None:
entry['StarPos'] = list(this.coordinates)