diff options
Diffstat (limited to 'youtube/accounts.py')
-rw-r--r-- | youtube/accounts.py | 3 |
1 files changed, 3 insertions, 0 deletions
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: |