removed print statements
This commit is contained in:
parent
24b609214f
commit
fbeaec2a85
|
@ -8,20 +8,16 @@ keys=[]
|
|||
names=[]
|
||||
alllines=keysfile.readlines()
|
||||
for i in range(0, len(alllines)):
|
||||
if i%2==0:
|
||||
# thisname=alllines[i]
|
||||
# thisname=thisname[:-2]
|
||||
if i%2==0: #alternatively put the name of the service and the key in each array
|
||||
names.append(alllines[i][:-1])
|
||||
# names.append(thisname)
|
||||
else:
|
||||
keys.append(alllines[i][:-1])
|
||||
print(names)
|
||||
chose=dmenu.show(names,case_insensitive=True, prompt='Search:')
|
||||
print(chose)
|
||||
chose=dmenu.show(names,case_insensitive=True, prompt='Search:') #get the selection from the user through dmenu
|
||||
|
||||
for i in range(0,len(keys)):
|
||||
if chose==names[i]:
|
||||
totp = pyotp.TOTP(keys[i])
|
||||
print(totp.now())
|
||||
clipboard.copy(totp.now())
|
||||
break
|
||||
else:
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue
Block a user