Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor code to remove filecache dependency #86

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions apple/job/apple.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from dataclasses import dataclass
from typing import List

from filecache import filecache
from appleconnector import AppleConnector
import requests
from loguru import logger
Expand All @@ -22,11 +21,6 @@ class AppleCookies:
itctx: str


# Add a cache decorator to the function that fetches the cookies
# so that we don't have to fetch them every time as we pay for every single
# login.
# The cache will be invalidated after 4 hours.
@filecache(4 * 60 * 60)
def fetch_all_cookies(bearer_token: str, apple_automation_endpoint: str):
"""
Get Apple cookies from API
Expand Down
1 change: 0 additions & 1 deletion apple/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ autopep8==1.7.0
backoff==1.11.1
certifi==2022.9.24
charset-normalizer==2.1.1
filecache==0.81
idna==3.4
loguru==0.6.0
monotonic==1.6
Expand Down
1 change: 0 additions & 1 deletion connector_manager/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ autopep8==1.7.0
backoff==1.11.1
certifi==2022.9.24
charset-normalizer==2.1.1
filecache==0.81
idna==3.4
loguru==0.6.0
monotonic==1.6
Expand Down
Loading