Skip to content

Commit

Permalink
hotpatch missing parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-J-Mason committed May 25, 2024
1 parent 3d82b21 commit a15e387
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ sell_market AS (SELECT commodity_id,
st_3ddistance(buy_market.coordinates_geom, sell_market.coordinates_geom) AS route_distance
FROM buy_market
INNER JOIN sell_market ON buy_market.commodity_id = sell_market.commodity_id
AND st_3ddwithin(sell_market.coordinates_geom, buy_market.coordinates_geom, #{maxRouteDistance}
AND st_3ddwithin(sell_market.coordinates_geom, buy_market.coordinates_geom, #{maxRouteDistance})
AND buy_market.buy_station_id != sell_market.sell_station_id
AND 100 >= sell_market.rn
WHERE (sell_market.sell_price - buy_market.buy_price) > 0
Expand Down

0 comments on commit a15e387

Please sign in to comment.