Skip to content

Commit 788e3cc

Browse files
author
brentru
committed
lintin
1 parent 194e282 commit 788e3cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PyPortal_TOTP_Friend/code.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,15 @@ def generate_otp(int_input, secret_key, digits=6):
140140

141141
return str_code
142142

143-
def display_otp_key(name, otp):
143+
def display_otp_key(secret_name, secret_otp):
144144
"""Updates the displayio labels to display formatted OTP key and name.
145145
146146
"""
147147
# display the key's name
148-
label_title.text = name
148+
label_title.text = secret_name
149149
# format and display the OTP
150-
label_secret.text = "{} {}".format(str(otp)[0:3], str(otp)[3:6])
151-
print("OTP Name: {}\nOTP Key: {}".format(name, otp))
150+
label_secret.text = "{} {}".format(str(secret_otp)[0:3], str(secret_otp)[3:6])
151+
print("OTP Name: {}\nOTP Key: {}".format(secret_name, secret_otp))
152152

153153
print("===========================================")
154154

0 commit comments

Comments
 (0)