Skip to content

Commit 79764c2

Browse files
Chore: Replaced the input()'s overlooked in edit_itinerary() with "new_value" parameter.
1 parent bdb9b6c commit 79764c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Travel_Itinerary_Planner/src/manage_itineraries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def edit_itinerary(itinerary_list, itinerary_option, edit_option, flight_choice,
108108
else:
109109
# Edit trip's string data (outside of flights & attractions)
110110
if edit_option == 'name' or edit_option == 'location' or edit_option == 'description':
111-
itinerary[edit_option] = input(f"Enter a new {edit_option} for {itinerary['name']}: ")
111+
itinerary[edit_option] = new_value
112112
break
113113

114114
# Flights: string type options

0 commit comments

Comments
 (0)