Refresh key on specified period, rather than on a fixed 15-second interval

This commit is contained in:
2022-06-23 15:08:31 -04:00
parent 938c7ff870
commit fa9cdd21c1
+1 -1
View File
@@ -59,7 +59,7 @@ if __name__ == '__main__':
print('\nmfa key copied to clipboard\n\nuntil this process is closed, your clipboard will be automatically '
'updated with the newest mfa key')
while True:
if str(int(strftime('%S'))/15).endswith('.0') or copied is None:
if str(int(strftime('%S'))/mfa_data[4]).endswith('.0') or copied is None:
if copied is None:
copied = 1
if mfa_data[0] == 'steam':