try 2
This commit is contained in:
@@ -23,9 +23,7 @@ def check_rtx_50_founders():
|
||||
|
||||
# Fetching nvidia API data
|
||||
try:
|
||||
# Natural cache busting that looks like API versioning
|
||||
version_param = f"1.{int(time.time() % 10000)}.{random.randint(10, 99)}"
|
||||
sku_url = f"{API_URL_SKU}&api_version={version_param}"
|
||||
sku_url = API_URL_SKU
|
||||
|
||||
response = session.get(sku_url, timeout=10)
|
||||
logging.info(f"SKU API response: {response.status_code}")
|
||||
@@ -64,8 +62,7 @@ def check_rtx_50_founders():
|
||||
first_run_dict[product_name] = False
|
||||
|
||||
# Check product availability in API_URL_STOCK for each SKU
|
||||
version_param = f"1.{int(time.time() % 10000)}.{random.randint(10, 99)}"
|
||||
api_stock_url = f"{API_URL_STOCK}{product_sku}&api_version={version_param}"
|
||||
api_stock_url = f"{API_URL_STOCK}{product_sku}"
|
||||
logging.info(f"[{product_name}] Checking stock: {api_stock_url}")
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user