Skip to content

Commit

Permalink
Comments updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kadhikari committed Nov 29, 2024
1 parent e6dbb55 commit c5762a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/jormungandr/jormungandr/scenarios/new_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -1317,11 +1317,10 @@ def fill_journeys(self, request_type, api_request, instance):
)

# we store the origin/destination detail in g to be able to use them after the marshall
# If origin/destination is address and id doesn't match with calculated id then
# If origin/destination is address and id doesn't match with calculated id (by autocomplete) then
# we should use the original request address id and update later
g.origin_detail = origin_detail
request_origin = json_address_from_uri(api_request.get('origin'))
# if request_origin and origin_detail and request_origin.get('id') != origin_detail.get('id'):
if is_different_geographic_position(origin_detail, request_origin):
origin_detail = request_origin
g.request_origin = request_origin
Expand Down

0 comments on commit c5762a4

Please sign in to comment.