added descriptions
This commit is contained in:
@@ -97,10 +97,14 @@ def new_trip(preferences: Preferences,
|
||||
if len(landmarks) == 0 :
|
||||
raise HTTPException(status_code=500, detail="No landmarks were found.")
|
||||
|
||||
# store landmarks in json file for debug
|
||||
|
||||
|
||||
###################### store landmarks in json file for debug ######################
|
||||
landmarks_list = [jsonable_encoder(item) for item in landmarks]
|
||||
with open('landmarks.json', 'w+') as file:
|
||||
json.dump(landmarks_list, file, indent=4)
|
||||
####################################################################################
|
||||
|
||||
|
||||
# insert start and finish to the landmarks list
|
||||
landmarks_short.insert(0, start_landmark)
|
||||
|
||||
Reference in New Issue
Block a user