Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Krainski committed Nov 28, 2024
1 parent d3a76c7 commit d3a4455
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runs/run.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

IFS=$'\n'
for row in $(cat nov-europe.csv | sed 's/\r$//')
for row in $(cat flights-to-scan.csv | sed 's/\r$//')
do
origin_airport_name=$(echo $row | cut -d "," -f 1)
origin_airport_code=$(echo $row | cut -d "," -f 2)
Expand Down
6 changes: 6 additions & 0 deletions yafs/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,9 @@ run-hooks = "pre-commit run --all-files"
sequence = [
{ ref = "test" }
]

[tool.poe.tasks.update]
sequence = [
{ shell = "poetry install" },
{ shell = "playwright install" }
]
2 changes: 1 addition & 1 deletion yafs/yafs/flights.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def _input_location(page, label, location_name, location_code):
location = page.get_by_label(label, exact=True)
await location.fill(location_name)
await page.wait_for_timeout(2000)
airport = page.get_by_text(location_code, exact=True)
airport = page.get_by_text(location_code, exact=True).first
await airport.click()


Expand Down

0 comments on commit d3a4455

Please sign in to comment.