From d838c0b9f90d89dec6be7275516d23250de34009 Mon Sep 17 00:00:00 2001 From: Adrian Walters Date: Sun, 14 Apr 2019 11:35:39 -0400 Subject: [PATCH 1/2] Notifications lost on init --- southwest/southwest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/southwest/southwest.py b/southwest/southwest.py index 299c3aa..4bea2ca 100644 --- a/southwest/southwest.py +++ b/southwest/southwest.py @@ -14,11 +14,11 @@ headers = {'Host': 'mobile.southwest.com', 'Content-Type': 'application/json', ' class Reservation(): - def __init__(self, number, first, last, notifications=[]): + def __init__(self, number, first, last, notifications): self.number = number self.first = first self.last = last - self.notifications = [] + self.notifications = notifications # You might ask yourself, "Why the hell does this exist?" # Basically, there sometimes appears a "hiccup" in Southwest where things From 98c0ebd8e89894d27cbaff565fe35aee0b5bfa91 Mon Sep 17 00:00:00 2001 From: Adrian Walters Date: Sun, 14 Apr 2019 15:07:40 -0400 Subject: [PATCH 2/2] Notifications list should be an optional param --- southwest/southwest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/southwest/southwest.py b/southwest/southwest.py index 4bea2ca..0a3b37b 100644 --- a/southwest/southwest.py +++ b/southwest/southwest.py @@ -14,7 +14,7 @@ headers = {'Host': 'mobile.southwest.com', 'Content-Type': 'application/json', ' class Reservation(): - def __init__(self, number, first, last, notifications): + def __init__(self, number, first, last, notifications=[]): self.number = number self.first = first self.last = last