From b4b08ff485421bcba064c896fc56194ab3a1722f Mon Sep 17 00:00:00 2001 From: Emen M <108234550+emenmousavi@users.noreply.github.com> Date: Wed, 26 Apr 2023 17:02:52 +0400 Subject: [PATCH] Update lightbin.py --- lightbin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightbin.py b/lightbin.py index b4771ee..39a7b82 100644 --- a/lightbin.py +++ b/lightbin.py @@ -30,7 +30,7 @@ def generate_bin(card_type): print(f"Type: {type_name}") brand_name = response.json().get('brand', 'None') print(f"Brand: {brand_name}") - if f"Brand: {response.json()['brand']}" == 'false': + if not response.json().get('prepaid'): print("Prepaid: No") else: print("Prepaid: Yes")