update somthing

This commit is contained in:
Hossein 2025-09-22 15:00:58 +03:30
parent 20954291c0
commit 2de6160d58

View File

@ -13,7 +13,7 @@ BOXAPI_ENDPOINT = os.environ.get(
class BoxAPIError(Exception):
pass
def get_media(username: str, count: int = 5) -> Tuple[List[Dict[str, Any]], str]:
def get_media(username: str, count: int = 30) -> Tuple[List[Dict[str, Any]], str]:
"""
Calls BoxAPI and returns (items, log_path).
"""
@ -79,7 +79,7 @@ def get_media(username: str, count: int = 5) -> Tuple[List[Dict[str, Any]], str]
raise BoxAPIError(f"BoxAPI request failed ({e}). See log: {log_path}")
# Legacy function for backward compatibility
def fetch_boxapi_posts(username: str, count: int = 5) -> List[Dict]:
def fetch_boxapi_posts(username: str, count: int = 30) -> List[Dict]:
try:
items, _ = get_media(username, count)
return items