From 9eaa4cce70c292293387a0e6b88f18818ec2f9c8 Mon Sep 17 00:00:00 2001 From: freqnik Date: Sun, 5 Nov 2023 22:01:33 -0500 Subject: [PATCH] len() -1 --- src/coin_api/get_price.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coin_api/get_price.py b/src/coin_api/get_price.py index 3419c7b..7c46671 100644 --- a/src/coin_api/get_price.py +++ b/src/coin_api/get_price.py @@ -10,7 +10,7 @@ class GetPriceAPI(): async def get_usd(self, coin): - N = random.randint(0,len(scrtxxs.COINSTATS_API_KEY)) + N = random.randint(0,len(scrtxxs.COINSTATS_API_KEY)-1) API_KEY = scrtxxs.COINSTATS_API_KEY[N] headers = { "accept": "application/json",