From fcbd8ebef6f4b3648f9b04cb8b7788fed4aeb719 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Wed, 26 Dec 2018 19:37:15 -0800 Subject: Added account selection to comment boxes --- youtube/accounts.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'youtube/accounts.py') diff --git a/youtube/accounts.py b/youtube/accounts.py index bc0e017..6959fb2 100644 --- a/youtube/accounts.py +++ b/youtube/accounts.py @@ -16,6 +16,9 @@ except FileNotFoundError: # global var for temporary storage of account info accounts = {} +def username_list(): + return accounts.keys() + def save_accounts(): to_save = {username: account for username, account in accounts.items() if account['save']} with open(os.path.join(settings.data_dir, 'accounts.txt'), 'w', encoding='utf-8') as f: -- cgit v1.2.3