Skip to content

Commit

Permalink
catch pathfinder up with db changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ctri-The-Third committed Mar 7, 2024
1 parent 4b6853e commit bab62de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions straders_sdk/pathfinder/pathfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,12 @@ def load_system_graph_from_db(self, system_s: str, fuel_capacity=400):
from waypoints w1
join waypoints w2 on w1.waypoint_symbol != w2.waypoint_symbol
and w1.system_symbol = w2.system_Symbol
left join market_tradegood mt on mt.market_waypoint = w2.waypoint_symbol
left join market_tradegoods mt on mt.market_symbol = w2.waypoint_symbol
left join waypoint_traits wt on wt.waypoint_Symbol = w2.waypoint_symbol
where
w1.system_symbol = %s
and w2.system_symbol = %s
and (mt.symbol = 'FUEL' or wt.trait_symbol = 'MARKETPLACE')
and (mt.trade_symbol = 'FUEL' or wt.trait_symbol = 'MARKETPLACE')
"""
results = try_execute_select(edge_sql, (system_s, system_s), self.connection)
Expand Down

0 comments on commit bab62de

Please sign in to comment.