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