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