From 983340967284ab4b53bfebad42b1fe8577ca339d Mon Sep 17 00:00:00 2001 From: Djeex Date: Thu, 30 Jan 2025 16:18:59 +0000 Subject: [PATCH] Fix stock issues --- README.md | 2 +- nvidia-stock-bot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 68a3948..7ffdf86 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Vous trouverez-ci dessous les instructions pour configurer le conteneur avec not version: "3.8" services: nvidia-stock-bot: - image: git.djeex.fr/djeex/nvidia-stock-bot:4 + image: git.djeex.fr/djeex/nvidia-stock-bot:5 container_name: nvidia-stock-bot restart: always # Le conteneur redémarrera automatiquement en cas d'échec environment: diff --git a/nvidia-stock-bot.py b/nvidia-stock-bot.py index 5e3be84..fe2347d 100644 --- a/nvidia-stock-bot.py +++ b/nvidia-stock-bot.py @@ -98,7 +98,7 @@ def check_rtx_50_founders(): gpu_name = p.get("gpu", "").upper() is_founder = p.get("isFounderEdition") is True is_nvidia = (p.get("manufacturer") == "NVIDIA") - is_buy_now = (p.get("prdStatus") == "buy_now" or p.get("productAvailable") is True) + is_buy_now = (p.get("prdStatus") != "out_of_stock") if is_founder and is_nvidia and is_buy_now: if any(target.upper() in gpu_name for target in GPU_TARGETS):