update somthing
This commit is contained in:
parent
20954291c0
commit
2de6160d58
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user