From 0a706c2dc8e0d22e23634bbc7ce1bbb7ba84b623 Mon Sep 17 00:00:00 2001 From: Cullen Watson Date: Sun, 14 Jul 2024 15:12:39 -0500 Subject: [PATCH] wip: login --- staffspy/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staffspy/utils.py b/staffspy/utils.py index 28dbe2f..72cdca1 100644 --- a/staffspy/utils.py +++ b/staffspy/utils.py @@ -137,7 +137,7 @@ def load_session(session_file, username, password): with open(session_file, "rb") as f: data = pickle.load(f) session = requests.Session() - session.headers.update(data["cookies"]) + session.cookies.update(data["cookies"]) session.headers.update(data["headers"]) return session