Skip to content

Commit

Permalink
Small cleanup
Browse files Browse the repository at this point in the history
- Updated the changelog
- Changed `pip` to `pip3` in the Readme, because some people still have
  `pip` linked to versions less than Python 3
- Improved a type hint
  • Loading branch information
jdholtz committed Mar 2, 2024
1 parent b696cbd commit 440aa33
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ version is necessary for the script to adapt to these changes (and expect more p

### New Features
- An official ARMv7 Docker image is now supported ([#77](https://github.com/jdholtz/auto-southwest-check-in/issues/77))
- Healthchecks.io integration is added to monitor for successes and failures during fare checking
([#203](https://github.com/jdholtz/auto-southwest-check-in/pull/203) by [@StevenMassaro](https://github.com/StevenMassaro))
- For details on how to set this integration up, see the [configuration documentation](CONFIGURATION.md#healthchecks-url)

### Bug Fixes
- Fix passwords not being input correctly into Southwest's login page
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ cd auto-southwest-check-in
```
Then, install the needed packages for the script
```shell
pip install -r requirements.txt
pip3 install -r requirements.txt
```
You may want to install the requirements in a [Python virtual environment][3] to ensure they don't conflict
with other Python projects on your system.
Expand Down
8 changes: 5 additions & 3 deletions lib/reservation_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
import sys
import time
from datetime import datetime
from typing import Any, Dict, List, Tuple
from typing import Any, Dict, List, Tuple, Union

from .checkin_scheduler import CheckInScheduler
from .config import AccountConfig, Config
from .config import AccountConfig, ReservationConfig
from .fare_checker import FareChecker
from .log import get_logger
from .notification_handler import NotificationHandler
Expand All @@ -23,7 +23,9 @@ class ReservationMonitor:
check-ins, flight changes or cancellations, and lower flight fares.
"""

def __init__(self, config: Config, lock: multiprocessing.Lock = None) -> None:
def __init__(
self, config: Union[AccountConfig, ReservationConfig], lock: multiprocessing.Lock = None
) -> None:
self.first_name = config.first_name
self.last_name = config.last_name

Expand Down

0 comments on commit 440aa33

Please sign in to comment.