mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
feat: Print source used in get_total_downloads function
This commit is contained in:
parent
2069ad62d1
commit
e31be8d3c9
1 changed files with 2 additions and 0 deletions
|
@ -79,9 +79,11 @@ def get_total_downloads(
|
||||||
Otherwise uses pepy.tech API (requires api_key).
|
Otherwise uses pepy.tech API (requires api_key).
|
||||||
"""
|
"""
|
||||||
if use_bigquery:
|
if use_bigquery:
|
||||||
|
print(f"Using BigQuery to fetch download statistics for {package_name}")
|
||||||
return get_downloads_from_bigquery(credentials_path, package_name)
|
return get_downloads_from_bigquery(credentials_path, package_name)
|
||||||
|
|
||||||
# Fall back to pepy.tech API
|
# Fall back to pepy.tech API
|
||||||
|
print(f"Using pepy.tech API to fetch download statistics for {package_name}")
|
||||||
if not api_key:
|
if not api_key:
|
||||||
print("API key not provided for pepy.tech", file=sys.stderr)
|
print("API key not provided for pepy.tech", file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue