Skip to content

Commit

Permalink
Change code
Browse files Browse the repository at this point in the history
  • Loading branch information
Laikaiyong committed Jun 12, 2021
1 parent 19f1618 commit 583519d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2638,6 +2638,9 @@ def car_claim():
# Extract car data to a variable that store list
cars = car_database_read()[0]

# Extract customer details to a variable that store list
customers = customer_details_read()

# No file spotted
except:
print("Due to unstable database, You will be redirected to the welcome page..\n")
Expand All @@ -2647,8 +2650,8 @@ def car_claim():
def claim_car_username_validation():
username = input("Enter your username to confirm your identity: ")

for statement in statements:
if username == statement[0]:
for customer in customers:
if username == customer[0]:
return username

# Username not available in the database
Expand Down

0 comments on commit 583519d

Please sign in to comment.