Skip to content

Commit

Permalink
Merge pull request #342 from NexaAI/brian/tmp
Browse files Browse the repository at this point in the history
url quote
  • Loading branch information
JoyboyBrian authored Jan 6, 2025
2 parents b30e21a + 1a18915 commit f60c8d9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nexa/gguf/server/nexa_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -1716,12 +1716,15 @@ async def action(request: ActionRequest):

if params['year'] == '2024':
params['year'] = datetime.now().year

if params['departure'] == 'current':
params['departure'] = 'LAS'
# Construct the date string in required format
date_str = f"{params['date']}/{params['year']}"

from urllib.parse import quote
params['departure'] = quote(params['departure'])
params['destination'] = quote(params['destination'])
date_str = quote(f"{params['date']}/{params['year']}")
# Build the URL
url = (f"https://www.expedia.com/Flights-Search?"
f"leg1=from:{params['departure']},to:{params['destination']},"
Expand Down

0 comments on commit f60c8d9

Please sign in to comment.