Skip to content

Commit

Permalink
Refactor code to remove filecache dependency (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
mre authored Oct 28, 2024
1 parent 11c1a03 commit c085b0e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
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

0 comments on commit c085b0e

Please sign in to comment.